Log Detail

列表 / 同App / 同Level
UUID33baa714-611a-46c8-b4aa-ddd356d4b658
Time2026-07-02 14:06:14.847
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 3292119 [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(0xc0048e5900, {0xf81420, 0x1c06db0})
	/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({0xf81420?, 0x1c06db0?})
	/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(0x22e?, 0xc00b696940?)
	/root/sources/cbg-value/internal/apps/value/sub_flow_random_push_review.go:322 +0xd2
cbg-trade/internal/apps/value.(*HttpServer).GetSubFlowRandomPushReview(0xc000838a00, 0xc0048e5900)
	/root/sources/cbg-value/internal/apps/value/sub_flow_random_push_review.go:162 +0xeeb
github.com/gin-gonic/gin.(*Context).Next(0xc0048e5900)
	/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(0xc0048e5900)
	/root/sources/cbg-value/internal/apps/value/http_server.go:252 +0x20b
github.com/gin-gonic/gin.(*Context).Next(0xc0048e5900)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 +0x2b
cbg-trade/internal/apps/value.NewHttpServer.Cors.func2(0xc0048e5900)
	/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(0xc0048e5900)
	/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(0xc000896340, 0xc0048e5900)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 +0x64e
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000896340, {0x14805a0, 0xc008598700}, 0xc007538a00)
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 +0x1aa
net/http.serverHandler.ServeHTTP({0xc006101aa0?}, {0x14805a0?, 0xc008598700?}, 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(0xc00a4f0c60, {0x14822f8, 0xc000885dd0})
	/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
点击上方链接可快速筛选同类日志。