nullstone
nullstone copied to clipboard
nil panic repoBranches.List
github.com/BSick7/go-api/recovery.PanicError: runtime error: invalid memory address or nil pointer dereference
https://app.uptrace.dev/traces/3367/f5609543cfd7b3d35a4776e4ef112717?time_gte=20251017T174142&time_dur=3600&tab=trace&column=service_name&span=f4711781e4&drawer=true
goroutine 928787 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x5e
github.com/BSick7/go-api/recovery.(*panicRecoveryHandler).ServeHTTP.func1()
/go/pkg/mod/github.com/!b!sick7/[email protected]/recovery/panic_middleware.go:60 +0x45
panic({0x39a83e0?, 0x70de560?})
/usr/local/go/src/runtime/panic.go:792 +0x132
github.com/nullstone-io/enigma/api.(*RepoBranches).List(0xc000b2c288, 0xc00087cc30, 0xc001721680)
/src/api/repo_branches.go:29 +0x293
github.com/nullstone-io/enigma/api.endpoints.Handler.func41({0x48d0830, 0xc001ad61a0}, 0xc001b53cc0)
/go/pkg/mod/github.com/!b!sick7/[email protected]/json/handler.go:25 +0x1a2
net/http.HandlerFunc.ServeHTTP(0x419d45?, {0x48d0830?, 0xc001ad61a0?}, 0x4af201?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/felixge/httpsnoop.CaptureMetrics.func1({0x48d0830?, 0xc001ad61a0?})
/go/pkg/mod/github.com/felixge/[email protected]/capture_metrics.go:29 +0x33
github.com/felixge/httpsnoop.(*Metrics).CaptureMetrics(0xc0022d6d80, {0x48d0800, 0xc001ce5ef0}, 0xc001b9af18)
/go/pkg/mod/github.com/felixge/[email protected]/capture_metrics.go:84 +0x1e5
github.com/felixge/httpsnoop.CaptureMetricsFn(...)
/go/pkg/mod/github.com/felixge/[email protected]/capture_metrics.go:39
github.com/felixge/httpsnoop.CaptureMetrics({0x4881a20?, 0xc000496380?}, {0x48d0800, 0xc001ce5ef0}, 0xc0015edc80?)
/go/pkg/mod/github.com/felixge/[email protected]/capture_metrics.go:28 +0x6e
github.com/nullstone-io/enigma/api.NewServer.Middleware.func10.1({0x48d0800?, 0xc001ce5ef0?}, 0xc001b53cc0)
/go/pkg/mod/github.com/!b!sick7/[email protected]/intercept/middleware.go:24 +0x4f
net/http.HandlerFunc.ServeHTTP(0xc001b53b80?, {0x48d0800?, 0xc001ce5ef0?}, 0x42f1ebc?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/nullstone-io/enigma/api.NewServer.CaptureMiddleware.func8.1({0x48d0800, 0xc001ce5ef0}, 0xc001b53b80)
/go/pkg/mod/github.com/!b!sick7/[email protected]/errors/capture.go:42 +0xd7
net/http.HandlerFunc.ServeHTTP(0xc001de4780?, {0x48d0800?, 0xc001ce5ef0?}, 0xc0036b2938?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/nullstone-io/enigma/api.NewServer.AddClaimsToOtelMiddleware.func7.1({0x48d0800, 0xc001ce5ef0}, 0xc001b53b80)
/src/access/claims.go:113 +0x3d8
net/http.HandlerFunc.ServeHTTP(0xc001b53a40?, {0x48d0800?, 0xc001ce5ef0?}, 0xc000407240?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/nullstone-io/enigma/api.NewServer.ClaimsMiddleware[...].func6.1(0xc001b53a40)
/go/pkg/mod/github.com/!b!sick7/[email protected]/jwt/claims_middleware.go:73 +0x1ed
net/http.HandlerFunc.ServeHTTP(0x48d0e00?, {0x48d0800?, 0xc001ce5ef0?}, 0xc0036b2920?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/xi2/httpgzip.NewHandlerLevel.func1({0x48d0e00, 0xc0030bca20}, 0xc001b53a40)
/go/pkg/mod/github.com/xi2/[email protected]/httpgzip.go:402 +0x242
net/http.HandlerFunc.ServeHTTP(0x130?, {0x48d0e00?, 0xc0030bca20?}, 0x410066?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/BSick7/go-api/recovery.(*panicRecoveryHandler).ServeHTTP(0xc001721540?, {0x48d0e00?, 0xc0030bca20?}, 0xc001721570?)
/go/pkg/mod/github.com/!b!sick7/[email protected]/recovery/panic_middleware.go:63 +0x56
go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux.traceware.ServeHTTP({{0xc00007c056, 0x6}, {0x48bbbd0, 0xc000973d00}, {0x48cf4e8, 0xc000896678}, {0x4881aa0, 0xc0015edba8}, 0x44a1480, 0x0, ...}, ...)
/go/pkg/mod/go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/[email protected]/mux.go:176 +0xddd
github.com/nullstone-io/enigma/api.NewServer.AddLogger.func2.1({0x48cf9f0, 0xc0001508c0}, 0xc001b537c0)
/go/pkg/mod/github.com/!b!sick7/[email protected]/logging/logger.go:55 +0x45e
net/http.HandlerFunc.ServeHTTP(0xc001b53680?, {0x48cf9f0?, 0xc0001508c0?}, 0x0?)
/usr/local/go/src/net/http/server.go:2294 +0x29
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0004efbc0, {0x48cf9f0, 0xc0001508c0}, 0xc001b53540)
/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:212 +0x1e2
net/http.serverHandler.ServeHTTP({0xc004d282a0?}, {0x48cf9f0?, 0xc0001508c0?}, 0x6?)
/usr/local/go/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc001b298c0, {0x48e7238, 0xc000b9a690})
/usr/local/go/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 1
/usr/local/go/src/net/http/server.go:3454 +0x485