Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

must provide at least one element in input slice #1396

Closed
geosmart opened this issue Sep 25, 2023 · 1 comment
Closed

must provide at least one element in input slice #1396

geosmart opened this issue Sep 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@geosmart
Copy link

master日志一直在刷这个错误,啥情况?
worker任务分发正常

/go/pkg/mod/github.com/crawlab-team/go-trace@v0.1.1/trace.go:13 github.com/crawlab-team/go-trace.TraceError()
/go/pkg/mod/github.com/crawlab-team/crawlab-db@v0.6.0-beta.20220417.1300.0.20221226064900-5a357ee73484/mongo/col.go:67 github.com/crawlab-team/crawlab-db/mongo.(*Col).InsertMany()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/models/service/base_service.go:233 github.com/crawlab-team/crawlab-core/models/service.(*BaseService).insert()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/models/service/base_service.go:105 github.com/crawlab-team/crawlab-core/models/service.(*BaseService).Insert()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/grpc/server/model_base_service_server.go:99 github.com/crawlab-team/crawlab-core/grpc/server.ModelBaseServiceServer.Insert.func1()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/grpc/server/model_base_service_server.go:116 github.com/crawlab-team/crawlab-core/grpc/server.ModelBaseServiceServer.handleRequest()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/grpc/server/model_base_service_server.go:98 github.com/crawlab-team/crawlab-core/grpc/server.ModelBaseServiceServer.Insert()
/go/pkg/mod/github.com/crawlab-team/crawlab-grpc@v0.6.0-beta.20211219.1930.0.20221020032435-afa1c691f73c/model_base_service_grpc.pb.go:420 github.com/crawlab-team/crawlab-grpc._ModelBaseService_Insert_Handler.func1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:31 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/auth/auth.go:46 github.com/grpc-ecosystem/go-grpc-middleware/auth.UnaryServerInterceptor.func1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:34 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/recovery/interceptors.go:29 github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:39 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1()
/go/pkg/mod/github.com/crawlab-team/crawlab-grpc@v0.6.0-beta.20211219.1930.0.20221020032435-afa1c691f73c/model_base_service_grpc.pb.go:422 github.com/crawlab-team/crawlab-grpc._ModelBaseService_Insert_Handler()
/go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:1282 google.golang.org/grpc.(*Server).processUnaryRPC()
/go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:1616 google.golang.org/grpc.(*Server).handleStream()
/go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:921 google.golang.org/grpc.(*Server).serveStreams.func1.2()
/usr/local/go/src/runtime/asm_amd64.s:1571 runtime.goexit()
2023/09/25 15:38:11 debug baseService.Insert -> svc.col.GetName(): tasks
2023/09/25 15:38:11 debug baseService.Insert -> docs: []
must provide at least one element in input slice
/go/pkg/mod/github.com/crawlab-team/go-trace@v0.1.1/trace.go:13 github.com/crawlab-team/go-trace.TraceError()
/go/pkg/mod/github.com/crawlab-team/crawlab-db@v0.6.0-beta.20220417.1300.0.20221226064900-5a357ee73484/mongo/col.go:67 github.com/crawlab-team/crawlab-db/mongo.(*Col).InsertMany()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/models/service/base_service.go:233 github.com/crawlab-team/crawlab-core/models/service.(*BaseService).insert()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/models/service/base_service.go:105 github.com/crawlab-team/crawlab-core/models/service.(*BaseService).Insert()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/grpc/server/model_base_service_server.go:99 github.com/crawlab-team/crawlab-core/grpc/server.ModelBaseServiceServer.Insert.func1()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/grpc/server/model_base_service_server.go:116 github.com/crawlab-team/crawlab-core/grpc/server.ModelBaseServiceServer.handleRequest()
/go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230726071808-25ed70356f13/grpc/server/model_base_service_server.go:98 github.com/crawlab-team/crawlab-core/grpc/server.ModelBaseServiceServer.Insert()
/go/pkg/mod/github.com/crawlab-team/crawlab-grpc@v0.6.0-beta.20211219.1930.0.20221020032435-afa1c691f73c/model_base_service_grpc.pb.go:420 github.com/crawlab-team/crawlab-grpc._ModelBaseService_Insert_Handler.func1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:31 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/auth/auth.go:46 github.com/grpc-ecosystem/go-grpc-middleware/auth.UnaryServerInterceptor.func1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:34 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/recovery/interceptors.go:29 github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1()
/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:39 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1()
/go/pkg/mod/github.com/crawlab-team/crawlab-grpc@v0.6.0-beta.20211219.1930.0.20221020032435-afa1c691f73c/model_base_service_grpc.pb.go:422 github.com/crawlab-team/crawlab-grpc._ModelBaseService_Insert_Handler()
/go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:1282 google.golang.org/grpc.(*Server).processUnaryRPC()
/go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:1616 google.golang.org/grpc.(*Server).handleStream()
/go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:921 google.golang.org/grpc.(*Server).serveStreams.func1.2()
/usr/local/go/src/runtime/asm_amd64.s:1571 runtime.goexit()
must provide at least one element in input slice
@geosmart geosmart added the bug Something isn't working label Sep 25, 2023
@tikazyq
Copy link
Collaborator

tikazyq commented Sep 26, 2023

最新版本已经fix了这个问题

@tikazyq tikazyq closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants