Error: The method net_version does not exist/is not available
See original GitHub issue- I’ve asked for help in the Truffle Gitter before filing this issue.
Issue
When i execute “truffle migrate” command i face the below issue.
Error: The method net_version does not exist/is not available
at Object.InvalidResponse (C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:41483:16)
at C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:330353:36
at C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:326008:9
at XMLHttpRequest.request.onreadystatechange (C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:329052:7)
at XMLHttpRequestEventTarget.dispatchEvent (C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176427:18)
at XMLHttpRequest._setReadyState (C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176717:12)
at XMLHttpRequest._onHttpResponseEnd (C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176872:12)
at IncomingMessage.<anonymous> (C:\Users\vivek_vallamkonda\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176832:24)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
Steps to Reproduce
execute “truffle migrate” command and the error should comeup
Expected Behavior
It should successfully migrate the code.
Actual Results
What actually happened. Please give examples and support it with screenshots, copied output or error messages.
Environment
- Operating System: Windows
- Truffle version: 4.0.5
- Ethereum client:
- node version:8.9.1
- npm version: 5.5.1
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
JSON RPC error, method net_version does not exist when ...
When trying to fork the Fantom mainnent using hardhat and the archive node https endpoint via the speedynodes section, I get this error...
Read more >Weird error 'The method eth_accounts does not exist/is not ...
and I face the following error. The method eth_accounts does not exist/is not available. I tried to enter geth and inspect using
Read more >ethereum/go-ethereum - Gitter
Hi all, I'm having trouble connecting my graph-node to my local geth node. I'm using this command to connect: cargo run -p graph-node...
Read more >Issues Connecting graph-node to Local geth node - Reddit
which gives this error: ... result Err(Rpc(Error { code: MethodNotFound, message: "the method net_version does not exist/is not available", data: None })).
Read more >JSON-RPC Server - Ethermint Documentation
Method Namespace Implemented
web3_clientVersion Web3 ✓
web3_sha3 Web3 ✓
net_version Net ✓
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 Free
Top 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
if your are using geth enable net on RPC api like `geth --rpc --rpcapi web3,eth,personal,miner,net,txpool i had the same issue enabling the api resolved it
I’m getting this using the new --http.api flag. Parameters are “eth,net,web3,admin,personal,miner”.
Using ethereum/client-go:latest in a docker container and running
truffle console
ortruffle migrations
throws the following:Geth client error is: