Message
[http_server.go:322] [PANIC] recovered | path=/api/role/value | method=GET | ip=218.86.85.43 | err=runtime error: invalid memory address or nil pointer dereference
goroutine 87924 [running]:
runtime/debug.Stack()
/root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/runtime/debug/stack.go:26 +0x5e
cbg-trade/internal/apps/value.(*HttpServer).recoveryMiddleware.func1(0xc0012eee00, {0x10efa20, 0x1f8dde0})
/root/sources/cbg-value/internal/apps/value/http_server.go:327 +0x3b
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1.1()
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:98 +0x776
panic({0x10efa20?, 0x1f8dde0?})
/root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/runtime/panic.go:787 +0x132
cbg-trade/internal/equipreport.(*EquipReport).GetPet(0x0, 0x20?, 0x1, {0x1261b26, 0x3})
/root/sources/cbg-value/internal/equipreport/pet_report.go:19 +0x3c
cbg-trade/internal/apps/value/valueall.(*valueAll).GetValue(0x1ff1fe0, {0xc001032648, 0x20}, 0xc002bd5950, 0x0, 0x0, {0x126485e, 0x5})
/root/sources/cbg-value/internal/apps/value/valueall/api.go:68 +0x185
cbg-trade/internal/apps/value.(*HttpServer).GetRoleValuation(0xc000c720e0, 0xc0012eee00)
/root/sources/cbg-value/internal/apps/value/role_value.go:185 +0x1005
github.com/gin-gonic/gin.(*Context).Next(0xc0012eee00)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 +0x2b
cbg-trade/internal/apps/value.NewHttpServer.Cors.func4(0xc0012eee00)
/root/sources/cbg-value/internal/utils/cors.go:21 +0xd8
github.com/gin-gonic/gin.(*Context).Next(...)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0012eee00)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 +0x6f
github.com/gin-gonic/gin.(*Context).Next(...)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc000a93a00, 0xc0012eee00)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x64e
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000a93a00, {0x169cac8, 0xc0015f1a40}, 0xc002ab6500)
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1aa
net/http.serverHandler.ServeHTTP({0xc003934b10?}, {0x169cac8?, 0xc0015f1a40?}, 0x6?)
/root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc0020d8a20, {0x169e950, 0xc001112a80})
/root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 1
/root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/net/http/server.go:3454 +0x485