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

eth_getLogs returns error: method handler crashed #1343

Closed
ella-quicknode opened this issue Oct 4, 2024 · 2 comments
Closed

eth_getLogs returns error: method handler crashed #1343

ella-quicknode opened this issue Oct 4, 2024 · 2 comments

Comments

@ella-quicknode
Copy link

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
Copy link
Contributor

cffls commented Oct 4, 2024

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
Copy link
Contributor

cffls commented Oct 7, 2024

Closing as resolved.

@cffls cffls closed this as completed Oct 7, 2024
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