eth_getLogs returns error: method handler crashed
ella-quicknode opened this issue · 2 comments
ella-quicknode commented
System information
Bor client version: v1.5.0-beta, bor_commit: b35b0e0
Heimdall client version: 1.0.9-beta
OS & Version: Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-1026-oracle x86_64)
Environment: Polygon Amoy / Devnet
Overview of the problem
eth_getLogs
method seemed to keep returning method handler crashed
, tried different payload, all of them failed with the same error.
Reproduction Steps
example payload:
curl -X POST \
'http://localhost:8545' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_getLogs",
"id": 1,
"params": [
{
"fromBlock": "0xc2bbaa",
"toBlock": "0xc2bbaa"
}
]
}'
Logs / Traces / Output / Error Messages
Oct 04 13:45:24 localhost bor[39011]: ERROR[10-04|13:45:24.640] RPC method eth_getLogs crashed: runtime error: invalid memory address or nil pointer dereference
Oct 04 13:45:24 localhost bor[39011]: goroutine 33695343 [running]:
Oct 04 13:45:24 localhost bor[39011]: github.com/ethereum/go-ethereum/rpc.(*callback).call.func1()
Oct 04 13:45:24 localhost bor[39011]: /tmp/bor-v1.5.0-beta/rpc/service.go:216 +0x85
Oct 04 13:45:24 localhost bor[39011]: panic({0x26d2f80?, 0x4f67010?})
Oct 04 13:45:24 localhost bor[39011]: /usr/local/go/src/runtime/panic.go:770 +0x132
Oct 04 13:45:24 localhost bor[39011]: github.com/ethereum/go-ethereum/eth/filters.(*FilterAPI).GetLogs(0xc000598e40, {0x3a5b2c8, 0xc09ca4a730}, {0x0, 0xc08a4a2a20, 0xc08a4a2a40, {0xc01d4a8ba0, 0x1, 0x1}, {0x0, ...}})
Oct 04 13:45:24 localhost bor[39011]: /tmp/bor-v1.5.0-beta/eth/filters/api.go:355 +0x5b
Oct 04 13:45:24 localhost bor[39011]: reflect.Value.call({0xc00ee640c0?, 0xc00ef802c0?, 0x50?}, {0x2af27f9, 0x4}, {0xc09ca4a820, 0x3, 0xc09ca4a820?})
cffls commented
Thanks for reporting the issue. It has been fixed in this PR. Please kindly upgrade your nodes to https://github.com/maticnetwork/bor/releases/tag/v1.5.0-beta2
cffls commented
Closing as resolved.