assert6 opened a new issue, #7135: URL: https://github.com/apache/incubator-devlake/issues/7135
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened  ### What do you expect to happen ```bash 2024/03/07 07:39:22 http: panic serving 172.19.0.5:42518: reflect: call of reflect.Value.Field on zero Value goroutine 146003 [running]: net/http.(*conn).serve.func1() /usr/local/go/src/net/http/server.go:1854 +0xbf panic({0x16aeb20, 0xc00387ca50}) /usr/local/go/src/runtime/panic.go:890 +0x270 reflect.Value.Field({0x0?, 0x0?, 0x7f54195a5a2e?}, 0xa?) /usr/local/go/src/reflect/value.go:1268 +0xe5 github.com/apache/incubator-devlake/helpers/pluginhelper/api.returnPrimaryKeyValue({0x7f5419946920, 0x0}) /app/helpers/pluginhelper/api/scope_generic_helper.go:484 +0x17f github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*GenericScopeApiHelper[...]).validatePrimaryKeys(0x7f5419a106c0?, {0xc0024f3830, 0x2, 0x16c5880}) /app/helpers/pluginhelper/api/scope_generic_helper.go:517 +0x111 github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*GenericScopeApiHelper[...]).PutScopes(0x7f5419a106c0, 0xc00387c888, {0xc0024f3830?, 0x2?, 0x2}) /app/helpers/pluginhelper/api/scope_generic_helper.go:170 +0xd5 github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*ScopeApiHelper[...]).Put(0x7f5419a05100, 0xc003a8cae0) /app/helpers/pluginhelper/api/scope_helper.go:67 +0x137 github.com/apache/incubator-devlake/plugins/tapd/api.PutScope(0xc003a8ca50?) /app/plugins/tapd/api/scope.go:48 +0x30 github.com/apache/incubator-devlake/server/api.handlePluginCall.func1(0xc001e82200) /app/server/api/router.go:135 +0x30f github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/apache/incubator-devlake/server/api.OAuth2ProxyAuthentication.func1(0xc001e82200) /app/server/api/middlewares.go:94 +0x143 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/apache/incubator-devlake/server/api.RestAuthentication.func1(0xc001e82200) /app/server/api/middlewares.go:114 +0xcc2 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc002e0da00, 0xc001e82200) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x66b github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc002e0da00, {0x1ab8670?, 0xc0033f4700}, 0xc001e82000) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1dd net/http.serverHandler.ServeHTTP({0x1ab2ac8?}, {0x1ab8670, 0xc0033f4700}, 0xc001e82000) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc0007bc5a0, {0x1ab9630, 0xc00141c390}) /usr/local/go/src/net/http/server.go:1995 +0x612 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3089 +0x5ed 2024/03/07 07:39:23 http: panic serving 172.19.0.5:42522: reflect: call of reflect.Value.Field on zero Value goroutine 146007 [running]: net/http.(*conn).serve.func1() /usr/local/go/src/net/http/server.go:1854 +0xbf panic({0x16aeb20, 0xc00306ec30}) /usr/local/go/src/runtime/panic.go:890 +0x270 reflect.Value.Field({0x0?, 0x0?, 0x7f54195a5a2e?}, 0xa?) /usr/local/go/src/reflect/value.go:1268 +0xe5 github.com/apache/incubator-devlake/helpers/pluginhelper/api.returnPrimaryKeyValue({0x7f5419946920, 0x0}) /app/helpers/pluginhelper/api/scope_generic_helper.go:484 +0x17f github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*GenericScopeApiHelper[...]).validatePrimaryKeys(0x7f5419a106c0?, {0xc002fb7660, 0x2, 0x16c5880}) /app/helpers/pluginhelper/api/scope_generic_helper.go:517 +0x111 github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*GenericScopeApiHelper[...]).PutScopes(0x7f5419a106c0, 0xc00306e990, {0xc002fb7660?, 0x2?, 0x2}) /app/helpers/pluginhelper/api/scope_generic_helper.go:170 +0xd5 github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*ScopeApiHelper[...]).Put(0x7f5419a05100, 0xc0024b2660) /app/helpers/pluginhelper/api/scope_helper.go:67 +0x137 github.com/apache/incubator-devlake/plugins/tapd/api.PutScope(0xc0024b25d0?) /app/plugins/tapd/api/scope.go:48 +0x30 github.com/apache/incubator-devlake/server/api.handlePluginCall.func1(0xc003234700) /app/server/api/router.go:135 +0x30f github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/apache/incubator-devlake/server/api.OAuth2ProxyAuthentication.func1(0xc003234700) /app/server/api/middlewares.go:94 +0x143 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/apache/incubator-devlake/server/api.RestAuthentication.func1(0xc003234700) /app/server/api/middlewares.go:114 +0xcc2 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc002e0da00, 0xc003234700) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x66b github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc002e0da00, {0x1ab8670?, 0xc000732540}, 0xc003234200) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1dd net/http.serverHandler.ServeHTTP({0x1ab2ac8?}, {0x1ab8670, 0xc000732540}, 0xc003234200) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc0007bcb40, {0x1ab9630, 0xc00141c390}) /usr/local/go/src/net/http/server.go:1995 +0x612 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3089 +0x5ed ``` ### How to reproduce stable reproducing ### Anything else _No response_ ### Version devlake:v0.20.0 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org