Coded error: Invalid Request in ganache v7.4.3
See original GitHub issueI’m getting this error when trying to launch ganache and forking Arbitrum
Command
ganache --chain.chainId 42161 --chain.vmErrorsOnRPCResponse true --wallet.totalAccounts 10 --fork.url https://arb-mainnet.g.alchemy.com/v2/EDITED --miner.blockGasLimit 120000000 --wallet.mnemonic brownie --server.port 8548
ganache v7.4.3 (@ganache/cli: 0.5.3, @ganache/core: 0.5.3)
Starting RPC server
eth_blockNumber
CodedError: invalid request
at /Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:112108
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async HttpHandler.queueRequest (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:112261)
at async HttpHandler.request (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:114428)
at async getBlockByNumber (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:120586)
at async resolveTargetAndClosestAncestor (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:121589)
at async PersistentCache.initialize (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:124853)
at async Fork.initCache (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:108610)
at async Fork.initialize (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:108567)
at async Blockchain.initialize (/Users/.../.nvm/versions/node/v16.14.1/lib/node_modules/ganache/dist/node/1.js:2:74966) {
code: -32600
}
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
right after it says Ganache is installed, it says the command ...
4.3 installed, then when confirming installation/version, it tells me command not found. Does this mean it isn't installed? Or installed wrong?
Read more >Deploying ganache-local w/brownie: VM Exception while ...
I get these errors while running or troubleshooting. ValueError: Gas estimation failed: 'execution reverted: VM Exception while processing ...
Read more >ganache-cli
Start using ganache-cli in your project by running `npm i ganache-cli`. ... -v or --verbose : Log all requests and responses to stdout ......
Read more >Ganache 7 Ethereum Simulator - Building on Web3 is now ...
Ganache 7 Ethereum Simulator - Building on Web3 is now easier and faster than ever before. ganache v7 banner. By Kingsley Arinze, Mei...
Read more >How to Build a Full Stack NFT Marketplace - V2 (2022)
All of my code is the same as the source code currently, please let me ... This is happening because of a Mumbai...
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
I’ve confirmed this is a new bug in Alchemy introduced sometime within the past 24 hours. I haven’t been able to get a hold of anyone at Alchemy yet; if anyone here knows someone at Alchemy please send them the link to this issue!
In the meantime you can use ganache’s built-in forking nodes for mainnet, ropsten, kovan, rinkeby, goerli (görli), and sepolia via
ganache --fork <network name>
; ganache’s built-in nodes provide free archive support and a very high per-IP rate limit. For other chains, like Arbitrum, Optimism, etc, you can sign up for an Infura account and use an Infura node URL instead of your alchemy node URL, e.g.,ganache --fork.url <URL>
.It looks like Alchemy has stopped responding to the “earliest” block tag which Ganache fetches on startup. I’ll try to get in touch with someone from alchemy today to see if they can fix this. Thank you for all of the reports.