Log Detail

列表 / 同App / 同Level
UUID51419c1b-3642-4098-836a-e5f24aed9105
Time2026-06-29 12:33:04.637
LevelERROR
Appcbg-trade
Tagtest

Message

[http_server.go:256] [PANIC] recovered | path=/api/sub_flow_random_push_review | method=GET | ip=115.46.201.53 | err=runtime error: invalid memory address or nil pointer dereference
goroutine 2692320 [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(0xc006290700, {0xf784a0, 0x1bf7bb0})
	/root/sources/cbg-value/internal/apps/value/http_server.go:261 +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({0xf784a0?, 0x1bf7bb0?})
	/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(0x158?, 0xc009681720?)
	/root/sources/cbg-value/internal/apps/value/sub_flow_random_push_review.go:322 +0xd2
cbg-trade/internal/apps/value.(*HttpServer).GetSubFlowRandomPushReview(0xc000842280, 0xc006290700)
	/root/sources/cbg-value/internal/apps/value/sub_flow_random_push_review.go:162 +0xeeb
github.com/gin-gonic/gin.(*Context).Next(0xc006290700)
	/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(0xc006290700)
	/root/sources/cbg-value/internal/apps/value/http_server.go:249 +0x20b
github.com/gin-gonic/gin.(*Context).Next(0xc006290700)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 +0x2b
cbg-trade/internal/apps/value.NewHttpServer.Cors.func2(0xc006290700)
	/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(0xc006290700)
	/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(0xc000d18000, 0xc006290700)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x64e
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000d18000, {0x1474aa0, 0xc005ffd7a0}, 0xc005f06c80)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1aa
net/http.serverHandler.ServeHTTP({0xc0005bc3f0?}, {0x1474aa0?, 0xc005ffd7a0?}, 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(0xc000e181b0, {0x14767b8, 0xc00095e000})
	/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
点击上方链接可快速筛选同类日志。