erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.15k stars 1.13k forks source link

caplin: there is a problem with the method return #12552

Open rayn316 opened 3 weeks ago

rayn316 commented 3 weeks ago

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 commented 3 weeks ago

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

jasonyic commented 2 weeks ago

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

    github.com/go-chi/chi/v5@v5.0.12/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/v5@v5.0.12/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/v5@v5.0.12/mux.go:73 +0x32f
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x31de9d0, 0xc0ce9830a0}, 0xc00022bd40)
    github.com/go-chi/chi/v5@v5.0.12/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/v5@v5.0.12/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/v5@v5.0.12/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/v5@v5.0.12/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/cors@v1.2.1/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/v5@v5.0.12/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
AskAlexSharov commented 2 days ago

show first 100 lines of trace - not last plz.

Giulio2002 commented 1 day ago

ok this is fixed in E3, will keep this open