Log Detail

列表 / 同App / 同Level
UUID31583063-f855-42e7-ad5d-cb499c37f00f
Time2026-07-01 13:01:49.805
LevelERROR
Appcbg-trade
Tagtest

Message

[http_server.go:259] [PANIC] recovered | path=/api/sub_flow_random_push_review | method=GET | ip=115.46.245.238 | err=runtime error: invalid memory address or nil pointer dereference
goroutine 867479 [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(0xc00a8da000, {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/apps/value.getMainDesc(...)
	/root/sources/cbg-value/internal/apps/value/sub_flow_random_push_review.go:194
cbg-trade/internal/apps/value.(*HttpServer).GetSubFlowRandomPushReviewName(0xd4?, 0xc0035ccb40?)
	/root/sources/cbg-value/internal/apps/value/sub_flow_random_push_review.go:322 +0xd2
cbg-trade/internal/apps/value.(*HttpServer).GetSubFlowRandomPushReview(0xc000c45c70, 0xc00a8da000)
	/root/sources/cbg-value/internal/apps/value/sub_flow_random_push_review.go:162 +0xeeb
github.com/gin-gonic/gin.(*Context).Next(0xc00a8da000)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 +0x2b
cbg-trade/internal/apps/value.(*HttpServer).registerRoutes.(*HttpServer).tokenAuthMiddleware.func2(0xc00a8da000)
	/root/sources/cbg-value/internal/apps/value/http_server.go:252 +0x20b
github.com/gin-gonic/gin.(*Context).Next(0xc00a8da000)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 +0x2b
cbg-trade/internal/apps/value.NewHttpServer.Cors.func2(0xc00a8da000)
	/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(0xc00a8da000)
	/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, 0xc00a8da000)
	/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, 0xc002826e00}, 0xc00b33a140)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1aa
net/http.serverHandler.ServeHTTP({0xc00d402840?}, {0x14804a0?, 0xc002826e00?}, 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(0xc00ae914d0, {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
点击上方链接可快速筛选同类日志。