adrienzieba opened a new issue, #7421: URL: https://github.com/apache/incubator-devlake/issues/7421
### 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 When trying to search a service for PagerDuty, I receive a panic ``` 2024/05/02 19:09:17 [Recovery] 2024/05/02 - 19:09:17 panic recovered: GET /plugins/pagerduty/connections/1/search-remote-scopes?search=d&page=1&pageSize=20 HTTP/1.1 ... runtime error: invalid memory address or nil pointer dereference /usr/local/go/src/runtime/panic.go:260 (0x99895c) /usr/local/go/src/runtime/signal_unix.go:837 (0x99892c) /app/plugins/pagerduty/api/remote_api.go:88 (0x7f5b97aff181) /app/plugins/pagerduty/api/remote_api.go:125 (0x7f5b97aff424) /app/helpers/pluginhelper/api/ds_remote_api_scope_search_helper.go:65 (0x7f5b97b0b56b) /app/plugins/pagerduty/api/remote_api.go:162 (0x7f5b97aff4ef) /app/server/api/router.go:141 (0x15d58ce) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x15d3702) /app/server/api/middlewares.go:95 (0x15d36e6) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x15d3b9a) /app/server/api/middlewares.go:117 (0x15d3a42) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x1230a01) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 (0x12309ec) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x122fb26) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240 (0x122fb09) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x122e9aa) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 (0x122e631) /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 (0x122e15c) /usr/local/go/src/net/http/server.go:2936 (0xccb095) /usr/local/go/src/net/http/server.go:1995 (0xcc6231) /usr/local/go/src/runtime/asm_amd64.s:1598 (0x9b5ac0) ``` ### What do you expect to happen The search for a PagerDuty Data Scope return results ### How to reproduce Create a connection for PagerDuty and try to search for a Data Scope. From the log this GET is done ``` GET /plugins/pagerduty/connections/1/search-remote-scopes?search=d&page=1&pageSize=20 ``` ### Anything else I also notice that the pagerDuty Task is not working for services already present in projects. I get the following error ``` error preparing task data for pagerduty (400) Wraps: (2) not enough info for Pagerduty execution (400) Error types: (1) *hintdetail.withDetail (2) *errors.errorString ``` ### Version v1.0.0-beta6 ### 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