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

block not found error with debug_traceCall #5365

Closed
quickchase opened this issue Sep 14, 2022 · 13 comments · Fixed by #6273
Closed

block not found error with debug_traceCall #5365

quickchase opened this issue Sep 14, 2022 · 13 comments · Fixed by #6273
Labels

Comments

@quickchase
Copy link
Contributor

System information

Erigon version: v2022.09.01

Issue

When making the following request to the node, it returns block not found:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "debug_traceCall",
  "params": [
    {
      "from": "0x5b18a8834ad5cfaaf231bb9fe9edc33a943cd16d",
      "to": "0x0fc584529a2aefa997697fafacba5831fac0c22d",
      "gas": "0x78ff",
      "gasPrice": "0x44501eb67",
      "value": "0x0",
      "data": "0x0956642b00000000000000000000000000000000000000000000000000000000000001ea00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000dffaf4a47794ebb00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000005b18a8834ad5cfaaf231bb9fe9edc33a943cd16d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000a4c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ea23aff1724fe14c38be4f4493f456cac1afec0e000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
    },
    "0xEA5EEA",
    {
      "tracer": "callTracer"
    }
  ]
}

Output is malformed JSON stating that the block cannot be found:

{"jsonrpc":"2.0","id":1,"result":nullnull,"error":{"code":-32000,"message":"block 15359722(928f9b8739ed29829a572beaaf860246bfea48b382bb523c89b39a2a542241c0) not found"}}

The node is in sync and the block does exist, I can call debug_traceBlockByNumber against this block just fine.

@currentoor
Copy link

I'm having the same issue.

@github-actions
Copy link

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 25, 2022
@quickchase
Copy link
Contributor Author

I assume this is still an issue

@github-actions github-actions bot removed the Stale label Oct 26, 2022
@mouseless-eth
Copy link

Just ran into the same issue as well after using debug_traceCall

{"jsonrpc":"2.0","id":5,"result":nullnull,"error":{"code":-32000,"message":"block 15711473(eb5f52e3ca034149d8698a2d88129611c91ad2fc41dbf5e9d9fea3ce48fdebf8) not found"}}

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 6, 2022
@quickchase
Copy link
Contributor Author

.

@github-actions github-actions bot removed the Stale label Dec 8, 2022
AlexeyAkhunov added a commit that referenced this issue Dec 10, 2022
#6273)

… formatting when error

Fixes #5365

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
@DicksonWu654
Copy link

This is still an issue - querying blocks older than ~2 weeks results in this issue

@AskAlexSharov
Copy link
Collaborator

This is still an issue - querying blocks older than ~2 weeks results in this issue

your --prune flags?

@syahrul12345
Copy link

Hi this is still an issue for debug_traceCallMany.
On first startup and then fully sync it worked
Restart rpcdaemon and it stopped working with the block not found error. Nothing changed

@chikko80
Copy link

@AskAlexSharov
For me debug_traceCall doesn't work for blocks older than 2 weeks, everything else works fine

@AskAlexSharov
Copy link
Collaborator

your --prune flags?

@AskAlexSharov AskAlexSharov reopened this Jul 14, 2023
@github-actions
Copy link

github-actions bot commented Sep 1, 2023

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 1, 2023
@github-actions
Copy link

github-actions bot commented Sep 9, 2023

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants