-
Notifications
You must be signed in to change notification settings - Fork 465
Description
Environment info:
- KrakenD version: Version: 2.10.0
- System info: docker
- Hardware specs: 8 CPU, 16 RAM
- Backend technology: PHP, Java
- Additional environment information:
Describe the bug
I periodically receive an error when working with the API gateway. The error appears randomly. When an error occurs, Krakend stops responding to requests, but the Krakend container itself does not crash.
Commands used
docker compose up -d
Logs
2025/05/28 03:46:29 http: panic serving 172.18.0.5:52896: invalid node type
goroutine 17014263 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1947 +0xbe
panic({0x31bf600?, 0x3cd2ca0?})
/usr/local/go/src/runtime/panic.go:792 +0x132
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x200000003?, {0xc001644a97?, 0x0?}, {0xc000821980?, 0xc00006ca08?, 0x1254609?}, {0x6f, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:862 +0xa71
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x10?, {0xc001644a94?, 0xc00108f578?}, {0xc000821980?, 0xc001038f00?, 0xc00108f610?}, {0x6f, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x120840e?, {0xc001644a8c?, 0x0?}, {0xc000821980?, 0xffffffffffffffff?, 0x133fbd6?}, {0x76, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x3503140?, {0xc001644a8b?, 0x0?}, {0xc000821980?, 0x127abbe?, 0x280?}, {0x68, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0xc00108f8d0?, {0xc001644a85?, 0x1214fdb?}, {0xc000821980?, 0x0?, 0x4?}, {0x63, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0xc002255620?, {0xc001644a84?, 0xc00108f7f0?}, {0xc000821980?, 0x80?, 0xc001644aaf?}, {0x65, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePath(0xc0009b95e0, {0xc001644a84, 0x31}, 0x1)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:669 +0x96
github.com/gin-gonic/gin.redirectFixedPath(0xc000c84e00, 0xc0009b95e0, 0x1)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:691 +0x4f
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00099b520, 0xc000c84e00)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:629 +0x395
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00099b520, {0x3d00f30, 0xc0039159a0}, 0xc001e81900)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576 +0x1aa
github.com/rs/cors.(*Cors).Handler.func1({0x3d00f30, 0xc0039159a0}, 0xc001e81900)
/go/pkg/mod/github.com/rs/[email protected]/cors.go:289 +0x1ba
net/http.HandlerFunc.ServeHTTP(0xc000f3e690?, {0x3d00f30?, 0xc0039159a0?}, 0x3cd3f00?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/krakend/krakend-otel/http/server.(*trackingHandler).ServeHTTP(0xc000f051d0, {0x3d00968, 0xc001714a80}, 0xc001e81680)
/go/pkg/mod/github.com/krakend/[email protected]/http/server/server.go:53 +0x496
net/http.serverHandler.ServeHTTP({0xc00154cb10?}, {0x3d00968?, 0xc001714a80?}, 0x6?)
/usr/local/go/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc000755a70, {0x3d04910, 0xc000f3e7e0})
/usr/local/go/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 82
/usr/local/go/src/net/http/server.go:3454 +0x485
2025/05/28 03:46:38 http: panic serving 172.18.0.5:41738: invalid node type
goroutine 17015402 [running]:
net/http.(*conn).serve.func1()
/usr/local/go/src/net/http/server.go:1947 +0xbe
panic({0x31bf600?, 0x3cd2ca0?})
/usr/local/go/src/runtime/panic.go:792 +0x132
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x200000003?, {0xc001688737?, 0x0?}, {0xc00132d280?, 0xc000073908?, 0x1254609?}, {0x6f, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:862 +0xa71
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x7?, {0xc001688734?, 0xc003d3a578?}, {0xc00132d280?, 0xc001869e00?, 0xc003d3a610?}, {0x6f, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x120840e?, {0xc00168872c?, 0x0?}, {0xc00132d280?, 0xffffffffffffffff?, 0x133fbd6?}, {0x76, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0x3503140?, {0xc00168872b?, 0x0?}, {0xc00132d280?, 0x127abbe?, 0x280?}, {0x68, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0xc003d3a8d0?, {0xc001688725?, 0x1214fdb?}, {0xc00132d280?, 0x0?, 0x4?}, {0x63, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePathRec(0xc000e321f8?, {0xc001688724?, 0xc003d3a7f0?}, {0xc00132d280?, 0x80?, 0xc00168874f?}, {0x65, 0x0, 0x0, 0x0}, ...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:778 +0x479
github.com/gin-gonic/gin.(*node).findCaseInsensitivePath(0xc0009b95e0, {0xc001688724, 0x31}, 0x1)
/go/pkg/mod/github.com/gin-gonic/[email protected]/tree.go:669 +0x96
github.com/gin-gonic/gin.redirectFixedPath(0xc002322400, 0xc0009b95e0, 0x1)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:691 +0x4f
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00099b520, 0xc002322400)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:629 +0x395
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00099b520, {0x3d00f30, 0xc00198dcc0}, 0xc003468780)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576 +0x1aa
github.com/rs/cors.(*Cors).Handler.func1({0x3d00f30, 0xc00198dcc0}, 0xc003468780)
/go/pkg/mod/github.com/rs/[email protected]/cors.go:289 +0x1ba
net/http.HandlerFunc.ServeHTTP(0xc000f3e690?, {0x3d00f30?, 0xc00198dcc0?}, 0x3cd3f00?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/krakend/krakend-otel/http/server.(*trackingHandler).ServeHTTP(0xc000f051d0, {0x3d00968, 0xc0013af340}, 0xc003468500)
/go/pkg/mod/github.com/krakend/[email protected]/http/server/server.go:53 +0x496
net/http.serverHandler.ServeHTTP({0xc003900c30?}, {0x3d00968?, 0xc0013af340?}, 0x6?)
/usr/local/go/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc0033d9710, {0x3d04910, 0xc000f3e7e0})
/usr/local/go/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 82
/usr/local/go/src/net/http/server.go:3454 +0x485