Log Detail

列表 / 同App / 同Level
UUID755c0c6e-dfd0-4fc8-a5f9-313be8e23393
Time2026-08-27 09:59:27.093
LevelERROR
Appcbg-trade
Tagtest

Message

[http_server.go:322] [PANIC] recovered | path=/api/role/value | method=GET | ip=220.203.168.174 | err=runtime error: invalid memory address or nil pointer dereference
goroutine 210105 [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(0xc0011c0200, {0x10f1a40, 0x1f90de0})
	/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({0x10f1a40?, 0x1f90de0?})
	/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).GetLingshi(0x0, 0x20?, 0x0, {0x12713f4, 0x7})
	/root/sources/cbg-value/internal/equipreport/lingshi_report.go:19 +0x39
cbg-trade/internal/apps/value/valueall.(*valueAll).GetValue(0x1ff4fa0, {0xc002e3ad38, 0x20}, 0xc0011051d0, 0x0, 0x0, {0x126689e, 0x5})
	/root/sources/cbg-value/internal/apps/value/valueall/api.go:60 +0xb05
cbg-trade/internal/apps/value.(*HttpServer).GetRoleValuation(0xc001146ee0, 0xc0011c0200)
	/root/sources/cbg-value/internal/apps/value/role_value.go:185 +0x1005
github.com/gin-gonic/gin.(*Context).Next(0xc0011c0200)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 +0x2b
cbg-trade/internal/apps/value.NewHttpServer.Cors.func4(0xc0011c0200)
	/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(0xc0011c0200)
	/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(0xc0009201a0, 0xc0011c0200)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x64e
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0009201a0, {0x169f128, 0xc0014c61c0}, 0xc0006f4640)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1aa
net/http.serverHandler.ServeHTTP({0xc00318e270?}, {0x169f128?, 0xc0014c61c0?}, 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(0xc00307ae10, {0x16a0fb0, 0xc0009edec0})
	/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
点击上方链接可快速筛选同类日志。