Log Detail

列表 / 同App / 同Level
UUIDda7f0755-95ff-4610-b1ae-924c4bf08d54
Time2026-07-01 12:02:01.920
LevelERROR
Appcbg-trade
Tagtest

Message

[http_server.go:259] [PANIC] recovered | path=/api/role/value | method=GET | ip=192.168.101.5 | err=runtime error: invalid memory address or nil pointer dereference
goroutine 62785 [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(0xc00271b900, {0xf813a0, 0x1c05bb0})
	/root/sources/cbg-value/internal/apps/value/http_server.go:264 +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({0xf813a0?, 0x1c05bb0?})
	/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?, 0x0, {0x10ce94d, 0x3})
	/root/sources/cbg-value/internal/equipreport/pet_report.go:19 +0x3c
cbg-trade/internal/apps/value/valueall.(*valueAll).GetValue(0x1c63fe0, {0xc00cb0e271, 0x20}, 0xc00d98b740, 0x0, 0x0, {0x10d163c?, 0x40926a?})
	/root/sources/cbg-value/internal/apps/value/valueall/api.go:58 +0x172
cbg-trade/internal/apps/value.(*HttpServer).GetRoleValuation(0xc000c45c70, 0xc00271b900)
	/root/sources/cbg-value/internal/apps/value/role_value.go:167 +0xee5
github.com/gin-gonic/gin.(*Context).Next(0xc00271b900)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 +0x2b
cbg-trade/internal/apps/value.NewHttpServer.Cors.func2(0xc00271b900)
	/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(0xc00271b900)
	/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(0xc000a3e340, 0xc00271b900)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x64e
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000a3e340, {0x14804a0, 0xc00aa949a0}, 0xc00b83b7c0)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1aa
net/http.serverHandler.ServeHTTP({0xc00d6a8f30?}, {0x14804a0?, 0xc00aa949a0?}, 0x1?)
	/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(0xc00cb0c360, {0x14821f8, 0xc00033ef60})
	/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
点击上方链接可快速筛选同类日志。