`header not found` error when starting ganache forking with infura RPC endpoint
See original GitHub issueI’m not sure if this is specific to forking or infura, but periodically on v6.10.1 I receive the following error immediately on startup:
Ganache CLI v6.10.1 (ganache-core: 2.11.2)
Error: Returned error: header not found
at Object.ErrorResponse (/home/mike/.nvm/versions/node/v12.18.3/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:39:2207407)
at /home/mike/.nvm/versions/node/v12.18.3/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:39:2206279
at /home/mike/.nvm/versions/node/v12.18.3/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:39:2193803
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Restarting will fix the issue fairly quickly. I’m wondering if this is related to #579 🤔 (doubt it though)
Your Environment
- Version used: Ganache CLI v6.10.1 (ganache-core: 2.11.2)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (6 by maintainers)
Top Results From Across the Web
header not found error when starting ganache forking ... - GitHub
I'm not sure if this is specific to forking or infura, but periodically on v6.10.1 I receive the following error immediately on startup: ......
Read more >Archival node extremely slow, shouts errors - Infura Community
I'm using ganache-cli to fork mainnet with it. ... provider errored when checking the nonce for account 2: Returned error: header not found....
Read more >Fork Ethereum with Ganache - Infura Docs
Create a fork of Ethereum Mainnet, running Ganache on full archive mode using the following command: Command. Output. ganache --fork.
Read more >Ganache-cli --fork support? - Questions - Infura Community
I've been chatting with the Truffle team, they've opened a new issue to look closer on this. It could be that ganache-core doesn't...
Read more >Create a dapp using Truffle and React - Infura Docs
Infura does not manage your private keys, meaning it cannot sign ... Module not found: Error: Can't resolve 'crypto' in ... Fork Ethereum...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Apologies for the delay, ran into some weirdness and wanted to collect it all rather than creating confusion.
I received the original error above (header not found) when trying to run ganache-cli while forking from Cloudflare:
ganache-cli -f https://cloudflare-eth.com
Gave:
Retrying the same command provided the same error. I then uninstalled and reinstalled ganache-cli and got the same error with a different account address at the top.
If I leave out the “-f …” part I get the callback error which made me aware that I need to revert my node version. I’m currently in the process of figuring out nvm and will report back if this error persists from node 12.
@dexcell That’s correct! At the current time, you can use your free sandbox to fork with archival data. Check out our docs to see how to make a sandbox