Skip to content

panic on holesky instance #518

@pk910

Description

@pk910

panic on light-holesky instance:

[negroni] PANIC: runtime error: integer divide by zero
goroutine 4123 [running]:
github.com/urfave/negroni.(*Recovery).ServeHTTP.func1()
	/home/runner/go/pkg/mod/github.com/urfave/[email protected]/recovery.go:159 +0xad
panic({0x2479320?, 0x5db1bd0?})
	/opt/hostedtoolcache/go/1.24.7/x64/src/runtime/panic.go:792 +0x132
github.com/ethpandaops/dora/handlers/api.ApiEpochV1({0x7fb95854f078, 0xc017deb4f0}, 0xc0395bcf00)
	/home/runner/work/dora/dora/handlers/api/epoch_v1.go:99 +0x1137
net/http.HandlerFunc.ServeHTTP(0xc021c12c90?, {0x7fb95854f078?, 0xc017deb4f0?}, 0xc039289208?)
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:2294 +0x29
github.com/ethpandaops/dora/handlers/middleware.CorsMiddleware.func1({0x7fb95854f078, 0xc017deb4f0}, 0xc0395bcf00)
	/home/runner/work/dora/dora/handlers/middleware/cors.go:54 +0x12e
net/http.HandlerFunc.ServeHTTP(0x28045d7?, {0x7fb95854f078?, 0xc017deb4f0?}, 0x1?)
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:2294 +0x29
github.com/ethpandaops/dora/handlers/middleware.(*RateLimitMiddleware).Middleware-fm.(*RateLimitMiddleware).Middleware.func1({0x7fb95854f078, 0xc017deb4f0}, 0xc0395bcf00)
	/home/runner/work/dora/dora/handlers/middleware/ratelimit.go:205 +0x43d
net/http.HandlerFunc.ServeHTTP(0x49e8818?, {0x7fb95854f078?, 0xc017deb4f0?}, 0x49c42b0?)
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:2294 +0x29
github.com/ethpandaops/dora/handlers/middleware.CallCostMiddleware.func1({0x7fb95854f078, 0xc017deb4f0}, 0xc0395bcdc0)
	/home/runner/work/dora/dora/handlers/middleware/call_cost.go:41 +0x1fa
net/http.HandlerFunc.ServeHTTP(0xc039285698?, {0x7fb95854f078?, 0xc017deb4f0?}, 0xc039289610?)
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:2294 +0x29
github.com/ethpandaops/dora/handlers/middleware.(*TokenAuthMiddleware).Middleware-fm.(*TokenAuthMiddleware).Middleware.func1({0x7fb95854f078, 0xc017deb4f0}, 0xc0395bcdc0)
	/home/runner/work/dora/dora/handlers/middleware/tokenauth.go:157 +0x465
net/http.HandlerFunc.ServeHTTP(0xc0395bcc80?, {0x7fb95854f078?, 0xc017deb4f0?}, 0x7fb9abfc7df8?)
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:2294 +0x29
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0012a4d80, {0x7fb95854f078, 0xc017deb4f0}, 0xc0395bcb40)
	/home/runner/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:212 +0x1e2
github.com/urfave/negroni.(*Negroni).UseHandler.Wrap.func1({0x7fb95854f078, 0xc017deb4f0}, 0xc0395bcb40, 0xc0234bfa80)
	/home/runner/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:46 +0x3c
github.com/urfave/negroni.HandlerFunc.ServeHTTP(0xf3ac52ead?, {0x7fb95854f078?, 0xc017deb4f0?}, 0x4000000104c8a80?, 0x7fb9584809d8?)
	/home/runner/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:29 +0x2d
github.com/urfave/negroni.middleware.ServeHTTP(...)
	/home/runner/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:38
github.com/urfave/negroni.(*Recovery).ServeHTTP(0x5dbd080?, {0x7fb95854f078?, 0xc017deb4f0?}, 0x451780?, 0xc0244caae0?)
	/home/runner/go/pkg/mod/github.com/urfave/[email protected]/recovery.go:193 +0x65
github.com/urfave/negroni.middleware.ServeHTTP(...)
	/home/runner/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:38
github.com/urfave/negroni.(*Negroni).ServeHTTP(0xc039368390, {0x49de6d0, 0xc0179df880}, 0xc0395bcb40)
	/home/runner/go/pkg/mod/github.com/urfave/[email protected]/negroni.go:96 +0x16e
net/http.serverHandler.ServeHTTP({0xc021c12c30?}, {0x49de6d0?, 0xc0179df880?}, 0x6?)
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc001ea6ab0, {0x49e8818, 0xc0004d9e30})
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 95
	/opt/hostedtoolcache/go/1.24.7/x64/src/net/http/server.go:3454 +0x485

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions