Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E3: Caplin: Panic with /eth/v1/node/identity #14189

Closed
MysticRyuujin opened this issue Mar 17, 2025 · 1 comment
Closed

E3: Caplin: Panic with /eth/v1/node/identity #14189

MysticRyuujin opened this issue Mar 17, 2025 · 1 comment

Comments

@MysticRyuujin
Copy link
Contributor

Caplin/v3.0.0-rc3 linux/amd64

Call:

curl -s -H 'Content-Type: application/json' http://localhost:5052/eth/v1/node/identity -v

Panic:

2025/03/17 13:55:06 http: panic serving [::1]:38636: runtime error: invalid memory address or nil pointer dereference
goroutine 507105341 [running]:
net/http.(*conn).serve.func1()
	net/http/server.go:1947 +0xbe
panic({0x27dd8a0?, 0x4c2d720?})
	runtime/panic.go:791 +0x132
github.com/erigontech/erigon/cl/sentinel/service.(*SentinelServer).Identity(0x42e205?, {0x28?, 0x2972940?}, 0x1?)
	github.com/erigontech/erigon/cl/sentinel/service/service.go:300 +0x79
github.com/erigontech/erigon-lib/direct.(*SentinelClientDirect).Identity(0x2685c80?, {0x34eafd8?, 0xc1822525a0?}, 0x839ee60c16952e8?, {0x0?, 0x0?, 0x1c1ace1df79b94c4?})
	github.com/erigontech/erigon-lib@v0.0.0-00010101000000-000000000000/direct/sentinel_client.go:65 +0x25
github.com/erigontech/erigon/cl/beacon/handler.(*ApiHandler).GetEthV1NodeIdentity(0xc1897ccfc8, {0xc15de38540?, 0x193ebd669fd9f35b?}, 0x1399577a0bed4214?)
	github.com/erigontech/erigon/cl/beacon/handler/node.go:146 +0x8f
github.com/erigontech/erigon/cl/beacon/beaconhttp.EndpointHandlerFunc[...].Handle(...)
	github.com/erigontech/erigon/cl/beacon/beaconhttp/api.go:94
github.com/erigontech/erigon/cl/beacon/handler.(*ApiHandler).init.func2.1.1.HandleEndpointFunc[...].5(0xc1a9dab400)
	github.com/erigontech/erigon/cl/beacon/beaconhttp/api.go:103 +0x55
net/http.HandlerFunc.ServeHTTP(0xc18808eb40?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc054604060?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc1fbb3c240, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:459 +0x2e2
net/http.HandlerFunc.ServeHTTP(0xc1822525a0?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc1a0861218?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc1fbb3c240, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:73 +0x32f
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0xc18808eb40?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc054604050?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc1fbb3c1e0, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:459 +0x2e2
net/http.HandlerFunc.ServeHTTP(0xc1822525a0?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc1a08613e8?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc1fbb3c1e0, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:73 +0x32f
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0xc18808eb40?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc270edff68?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc1fbb3c180, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:459 +0x2e2
net/http.HandlerFunc.ServeHTTP(0xc1822525a0?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc1a08615b8?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc1fbb3c180, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:73 +0x32f
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0xc18808eb40?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc236535dd4?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc1fbb3c0c0, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:459 +0x2e2
net/http.HandlerFunc.ServeHTTP(0xc1822525a0?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc1822525a0?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc1fbb3c0c0, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab400)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:73 +0x32f
github.com/erigontech/erigon/cl/beacon/handler.(*ApiHandler).ServeHTTP(0x34eafd8?, {0x34e22a0?, 0xc188a6a1c0?}, 0x4c36f20?)
	github.com/erigontech/erigon/cl/beacon/handler/handler.go:375 +0x6c
github.com/erigontech/erigon/cl/beacon.ListenAndServe.func1({0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab180)
	github.com/erigontech/erigon/cl/beacon/router.go:59 +0x1df
net/http.HandlerFunc.ServeHTTP(0xc1756a2c30?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc236535dd4?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc1fbb3d140, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab180)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:459 +0x2e2
net/http.HandlerFunc.ServeHTTP(0xc1ea926640?, {0x34e22a0?, 0xc188a6a1c0?}, 0xc1a9dab180?)
	net/http/server.go:2220 +0x29
github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab180)
	github.com/go-chi/cors@v1.2.1/cors.go:228 +0x17e
net/http.HandlerFunc.ServeHTTP(0x34eb010?, {0x34e22a0?, 0xc188a6a1c0?}, 0x4c36f20?)
	net/http/server.go:2220 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc1fbb3d140, {0x34e22a0, 0xc188a6a1c0}, 0xc1a9dab040)
	github.com/go-chi/chi/v5@v5.1.0/mux.go:90 +0x2ee
net/http.serverHandler.ServeHTTP({0xc182252480?}, {0x34e22a0?, 0xc188a6a1c0?}, 0x6?)
	net/http/server.go:3210 +0x8e
net/http.(*conn).serve(0xc2a6243d40, {0x34eafd8, 0xc205ba0b40})
	net/http/server.go:2092 +0x5d0
created by net/http.(*Server).Serve in goroutine 88344
	net/http/server.go:3360 +0x485
@Giulio2002
Copy link
Contributor

fixed by a929423

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants