erigon icon indicating copy to clipboard operation
erigon copied to clipboard

caplin: there is a problem with the method return

Open rayn316 opened this issue 1 year ago • 4 comments

System information

Erigon version: 2.60.8

OS & Version: Windows/Linux/OSX

Commit hash:

Erigon Command (with flags/config):

Consensus Layer:

Consensus Layer Command (with flags/config):

Chain/Network:

Expected behaviour

Actual behaviour

This method cannot return data

curl -s "http://127.0.0.1:21307/eth/v1/validator/attestation_data?committee_index=1&slot=10293088"
{"code":500,"message":"head state slot is bigger than requested slot, the attestation should have been cached, try again later."}

Steps to reproduce the behaviour

Backtrace

[backtrace]

rayn316 avatar Oct 31 '24 02:10 rayn316

And this method request has no return /rpc/eth/v1/node/identity

rayn316 avatar Oct 31 '24 02:10 rayn316

/eth/v1/node/identity in 2.60.9 seems broken:

	github.com/go-chi/chi/[email protected]/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0xc0b1badd10?, {0x31de9d0?, 0xc0ce9830a0?}, 0xc0b60a6300?)
	net/http/server.go:2171 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0989ba120, {0x31de9d0, 0xc0ce9830a0}, 0xc00022bd40)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2e6
net/http.HandlerFunc.ServeHTTP(0xc115e18ae0?, {0x31de9d0?, 0xc0ce9830a0?}, 0xc036efd5b0?)
	net/http/server.go:2171 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0989ba120, {0x31de9d0, 0xc0ce9830a0}, 0xc00022bd40)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x32f
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x31de9d0, 0xc0ce9830a0}, 0xc00022bd40)
	github.com/go-chi/chi/[email protected]/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0xc0b1badd10?, {0x31de9d0?, 0xc0ce9830a0?}, 0xc036a8b324?)
	net/http/server.go:2171 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0989ba000, {0x31de9d0, 0xc0ce9830a0}, 0xc00022bd40)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2e6
net/http.HandlerFunc.ServeHTTP(0xc115e18ae0?, {0x31de9d0?, 0xc0ce9830a0?}, 0x15e18ae0?)
	net/http/server.go:2171 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0989ba000, {0x31de9d0, 0xc0ce9830a0}, 0xc00022bd40)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x32f
github.com/ledgerwatch/erigon/cl/beacon/handler.(*ApiHandler).ServeHTTP(0x31e62d0?, {0x31de9d0?, 0xc0ce9830a0?}, 0x4741990?)
	github.com/ledgerwatch/erigon/cl/beacon/handler/handler.go:317 +0x72
github.com/ledgerwatch/erigon/cl/beacon.ListenAndServe.func1({0x31de9d0, 0xc0ce9830a0}, 0xc00022b200)
	github.com/ledgerwatch/erigon/cl/beacon/router.go:41 +0x1df
net/http.HandlerFunc.ServeHTTP(0xc0b829e1e0?, {0x31de9d0?, 0xc0ce9830a0?}, 0xc036a8b324?)
	net/http/server.go:2171 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0989ba060, {0x31de9d0, 0xc0ce9830a0}, 0xc00022b200)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2e6
net/http.HandlerFunc.ServeHTTP(0xc097fdc6e0?, {0x31de9d0?, 0xc0ce9830a0?}, 0xc00022b200?)
	net/http/server.go:2171 +0x29
github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0x31de9d0, 0xc0ce9830a0}, 0xc00022b200)
	github.com/go-chi/[email protected]/cors.go:228 +0x17e
net/http.HandlerFunc.ServeHTTP(0x31e6308?, {0x31de9d0?, 0xc0ce9830a0?}, 0x4741990?)
	net/http/server.go:2171 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0989ba060, {0x31de9d0, 0xc0ce9830a0}, 0xc0c7b967e0)
	github.com/go-chi/chi/[email protected]/mux.go:90 +0x2ee
net/http.serverHandler.ServeHTTP({0xc0c79d4e70?}, {0x31de9d0?, 0xc0ce9830a0?}, 0x6?)
	net/http/server.go:3142 +0x8e
net/http.(*conn).serve(0xc111fc4bd0, {0x31e62d0, 0xc097fd90e0})
	net/http/server.go:2044 +0x5e8
created by net/http.(*Server).Serve in goroutine 5118
	net/http/server.go:3290 +0x4b4
Logs from 06/11/2024, 17:20:16

jasonyic avatar Nov 06 '24 09:11 jasonyic

show first 100 lines of trace - not last plz.

AskAlexSharov avatar Nov 21 '24 04:11 AskAlexSharov

ok this is fixed in E3, will keep this open

Giulio2002 avatar Nov 22 '24 10:11 Giulio2002

caplin is deprecated for e2

Giulio2002 avatar Jan 21 '25 16:01 Giulio2002