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

   ### 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
   
   We are running Devlake using docker compose with image tags pinned to 1.0.2. 
It was on the older version before where the Teams and User API worked the 
first time. We updated the version few weeks back and this is the first time we 
are trying on 1.0.2 but the error is consistent as below:
   
   ```
   2025/09/23 14:54:20 [Recovery] 2025/09/23 - 14:54:20 panic recovered:
   PUT /rest/plugins/org/teams.csv HTTP/1.1
   Host: devlake:8080
   Accept: */*
   Authorization: *
   Content-Length: 566
   Content-Type: multipart/form-data; 
boundary=------------------------8621d9a30c86a953
   User-Agent: curl/7.81.0
   
   
   runtime error: invalid memory address or nil pointer dereference
   /usr/local/go/src/runtime/panic.go:260 (0x9b1ddc)
   /usr/local/go/src/runtime/signal_unix.go:841 (0x9b1dac)
   /app/plugins/org/api/team.go:88 (0x7dde2937baa4)
   /app/server/api/router.go:141 (0x16179ce)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x16157e2)
   /app/server/api/middlewares.go:95 (0x16157c6)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x1615c87)
   /app/server/api/middlewares.go:117 (0x1615b22)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x1255301)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 (0x12552ec)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x1254426)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 (0x1254409)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x12532aa)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:620 (0x1252f31)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:587 (0x1252c04)
   /app/server/api/middlewares.go:127 (0x1615c3a)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x1255301)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 (0x12552ec)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x1254426)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:240 (0x1254409)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174 (0x125338c)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:656 (0x1253375)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:649 (0x12530cc)
   /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576 (0x1252a5c)
   /usr/local/go/src/net/http/server.go:2936 (0xce45b5)
   /usr/local/go/src/net/http/server.go:1995 (0xcdf751)
   /usr/local/go/src/runtime/asm_amd64.s:1598 (0x9cef40)
   ```
   
   We found two issues with similar problems (#8271 and #7957 ) but both the 
solutions do not work for us. Already tried the UTF-8 formatting as well along 
with following the exact steps in Postman with the help of  screenshots in the 
issues. 
   Additionally, also tried using the exact curl generated by the Swagger but 
that also fails.  The GET requests for fake data are working fine, however not 
the PUT ones. 
   
   ### What do you expect to happen
   
   The API should succeed and the teams setting should get updated. 
   
   ### How to reproduce
   
   ```
   curl 'http://127.0.01:4000/api/rest/plugins/org/teams.csv' -X 'PUT' -H 
'Authorization: Bearer xxxxxxxxx' --form file=@"teams.csv"
   ```
   The file is assumed to be at the same path as the command is being run. 
   
   ### Anything else
   
   This is occurring consistently. We need a way to periodically update the 
teams and users in the database to reflect changes as they happen. 
   The same is happening with users API as well with PUT requests. 
   
   ### Version
   
   v1.0.2
   
   ### 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