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

   ### 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
   
   Following [Team 
Configuration](https://devlake.apache.org/docs/Configuration/TeamConfiguration/)
 setup, `teams`, `users`, and `team_users` tables fail to populate when trying 
to upload CSV files using cURL/postman. No error is returned other than 500 
internal error, managed to collect some logs from the AWS ECS instance, see 
below. Mysql is running inside AWS RDS
   
   `10.39.45.25 - - [26/Aug/2024:09:09:45 +0000] "PUT 
/api/rest/plugins/org/teams.csv HTTP/1.1" 500 0 "-" "curl/8.7.1" "10.1.170.32"
   [31m2024/08/26 09:09:45 [Recovery] 2024/08/26 - 09:09:45 panic recovered:
   runtime error: invalid memory address or nil pointer dereference
   /usr/local/go/src/runtime/panic.go:260 (0x9a295c)
   /usr/local/go/src/runtime/signal_unix.go:837 (0x9a292c)
   /app/plugins/org/api/team.go:88 (0x7fc331b24584)
   /app/server/api/router.go:141 (0x15ec88e)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x15ea6a2)
   /app/server/api/middlewares.go:95 (0x15ea686)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x15eab47)
   /app/server/api/middlewares.go:117 (0x15ea9e2)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x123c5a1)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 (0x123c58c)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x123b6c6)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240 (0x123b6a9)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x123a54a)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 (0x123a1d1)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:587 (0x1239ea4)
   /app/server/api/middlewares.go:127 (0x15eaafa)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x123c5a1)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 (0x123c58c)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x123b6c6)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240 (0x123b6a9)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0x123a62c)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:656 (0x123a615)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:649 (0x123a36c)
   /go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 (0x1239cfc)
   /usr/local/go/src/net/http/server.go:2936 (0xcd5095)
   /usr/local/go/src/net/http/server.go:1995 (0xcd0231)
   /usr/local/go/src/runtime/asm_amd64.s:1598 (0x9bfac0)
   [0m
   [GIN] 2024/08/26 - 09:09:45 | 500 | 876.761µs | 10.1.170.32 | PUT 
"/plugins/org/teams.csv"
   [GIN] 2024/08/26 - 09:09:45 | 500 | 14.334329ms | 10.1.170.32 | PUT 
"/rest/plugins/org/teams.csv"
   time="2024-08-26 09:09:45" level=info msg="redirect path: 
/rest/plugins/org/teams.csv to: /plugins/org/teams.csv"`
   
   
   
   ### What do you expect to happen
   
   Populate mysql tables accordingly.
   
   ### How to reproduce
   
   Download fake data and try to upload using cURL or postman
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   devlake-1.0.1-beta7
   
   ### 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

Reply via email to