awickham10 opened a new issue, #5681:
URL: https://github.com/apache/incubator-devlake/issues/5681

   ### 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 sending a deployment webhook I get a 500 error. Here is a snippet from 
the logs.
   
   ```
   [GIN] 2023/07/17 - 18:47:50 | 500 | 725.404µs | 10.200.220.27 | POST 
"/plugins/webhook/1/deployments"
   2023/07/17 18:47:50 [Recovery] 2023/07/17 - 18:47:50 panic recovered:
   POST /plugins/webhook/1/deployments HTTP/1.0
   Host: devlake-lake.devlake.svc.cluster.local:8080
   Accept: application/json
   Connection: close
   Content-Length: 195
   Content-Type: application/json
   Forwarded: 
for=10.200.220.27;host=devlake.apps.openshift.ourdomain.local;proto=http
   User-Agent: curl/7.61.1
   X-Forwarded-For: 10.200.220.27
   X-Forwarded-Host: devlake.apps.openshift.ourdomain.local
   X-Forwarded-Port: 80
   X-Forwarded-Proto: http
   runtime error: invalid memory address or nil pointer dereference
   /usr/local/go/src/runtime/panic.go:260 (0xb15bdc)
   /usr/local/go/src/runtime/signal_unix.go:837 (0xb15bac)
   /app/server/api/shared/api_output.go:59 (0x14b5a25)
   /app/server/api/router.go:117 (0x1a8c216)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x138fc81)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 (0x138fc6c)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x138eda6)
   ```
   
   ### What do you expect to happen
   
   Send a deployment.
   
   ### How to reproduce
   
   ```
   curl 
http://devlake.apps.svatwfldopnshft.westfieldgrp.corp/api/plugins/webhook/1/deployments
 -H 'Content-Type: application/json' -H 'Accept: application/json' -X 'POST' -d 
'{
             \"commit_sha\":\"the sha of deployment commit\",
             \"repo_url\":\"the repo URL of the deployment commit\",
             \"start_time\":\"eg. 2020-01-01T12:00:00+00:00\"
           }'
   ```
   
   ### Anything else
   
   Every time I submit a deployment webhook.
   
   ### Version
   
   v0.18-beta1
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to