-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Invalid JSON RPC response: {"id":15,"jsonrpc":"2.0","error":{"code":-32603}} #3140
Comments
The contract must be with parameters and nested other contracts |
this problem fix using Brave, with firefox and chrome dont work on mainnet |
We believe we found the source of this and that it has been fixed. Let us know if it is not fixed, and I will reopen the issue. We recently switched our Infura connection to a RESTful API, to reduce network load on them. Part of that required allowing differently structured requests, to account for contract publishing payloads under the new API. |
I'm still experiencing this right now |
Still experiencing this as well on Remix. I can deploy some contracts, but for a larger contract I'm getting this exact error. Network: Rinkeby |
Having the same issue! :/ Also using Remix, main network. Chrome 63 on Mac OS X. |
Please Re-open the issue, this is not fixed yet. |
It is not fixed TT, plz reopen issue |
@danfinlay |
Can anyone please provide reprosuction steps, ideally for a test network? We have not reproduced this problem. |
Ok we may have a reproduction contract here: |
Yes I am still able to reproduce it using remix.
The compiler version I am using in remix is 0.4.18 |
Alright, thanks @sameepsi, I've been able to reproduce this issue, Infura is throwing a We should have this fixed soon, but in the meanwhile, you should be able to work around it by clicking the top-left provider menu in MetaMask, and entering |
Thanks, |
same error in https://rinkeby.infura.io/500workaround |
https://rinkeby.infura.io/500workaround not work for me. |
In my private aura network, I'm facing the same error.
|
This should be fixed. For those reporting this is not fixed (@olgierds, @massimo110, @chebykin), please provide fresh reproduction steps, since the excellent steps provided above no longer cause a problem. |
Im still getting the error at remix when I click debug, I've tried all steps above and also tried to use the /500workaround |
The Since no core devs can reproduce, the debugging needs to be done by someone who can reproduce. Try opening the background inspector, and looking at the Bonus: Right click that request, click |
@danfinlay, thank you for the instructions! As for me, it looks like a problem with Parity aura engine or it's config. This is a request/response pair from the Parity node rpc logs:
The two frustrating things about MetaMask response are:
|
@chebykin As far as I can see from the logs you need to increase the gas limit for the deployment of your contract. |
@sameepsi, Thank you for the suggestion! But this is a contract method invocation, not a contract deployment. The contract is a consensus contract and is hardcoded into the |
Let us know how that goes. I'm a little curious why some people reported this isn't working on Infura, though. They are running Geth right now, not Parity. |
In my case, it was my mistake with chain state which lead to the response I described above. I tried to invoke gas estimation request against the brand new chain with no blocks mined yet. The error response disappeared after the first block was mined. As I see here https://github.com/kumavis/json-rpc-engine/blob/b5185e5d6e75717745269f5f4be65af42bf6bb40/src/index.js#L107 the -32602 error is a default one, so it could wrap any error from the server. |
I'm having the same issue described by @jtakalai above. I use remix + metamask inside chrome, on the rinkeby testnet. All work fine when I deploy a contract or interact with previously deployed contract at some address. The failure comes when I use the debugger tab to debug a certain transaction. I enter the block/tx paramaeters , then click start debugging and, boom, I get the error: Notice that if in Remix I change the environment from the metamask provided "injected web3" to my local geth node "web3 provider" the debugger with the very same transaction works flawlessly, so the problem must be in the way metamask is handling the bridge for this kind of operation. Shouldnt be difficult to reproduce this problem, but in case you are unable to I can provide further details (the only problem is that github email notifications never worked for me, I have to check manually, in polling mode, if someone replied to my posts) Any help, workaround to solve this issue greatly appreciated, keeping a local node always in sync with Eth blockchain is already annoying on rinkeby, don't want to imagine how hard can be on the main net. Thank you |
You can work around this for now by entering this custom RPC endpoint: Where”mainnet” can be most network names. |
thanks Dan, |
just tried |
You should enter the custom rpc url in MetaMask. Find “Custom RPC” in the network menu when you click the network name in MetaMask. |
Set the custom RPC as you suggested, used address |
Oh, MetaMask doesn't support the remix debugger yet. Sorry I didn't understand that's what you were trying to do. We do have a PR for adding it in client-side, and it may be merged soon, but it does not work yet. We're also going to be fixing these undescriptive errors soon. |
What a pity :( ... |
Yes, it would be a killer feature... |
I get the same error too, luckly I fix it later. Hope these info will help :) Environmentganache-cli in docker Reproduction
SolutionUse |
I fixed this error by updating to the latest Node.js, Truffle, Ganache-CLI, i.e.
I then restarted Ganache CLI, redeployed my contracts (i.e. |
I received this error using firefox and a sample app. The application works fine in Chrome (65.0.3325.181). This may help diagnose as this is a very small, self contained example app. Environment Reproduction
Solution |
It was also important for me to redeploy the contracts if I restarted TestRPC with |
Same issue using Firefox 59.0.2 and MetaMask 3.13.8. |
Firefox has recently been a bit slower about deploying our latest fixes, we are working with them to improve this process. It's very possible this bug has been fixed in our latest release, but on Firefox we need to get our builds perfectly deterministic before we can get reliable deploys anymore. |
In my case all I had to do is to connect account (with funds) to metamask |
@psylinse @bitdom0 firefox is now up to date with Chrome & our most recent release (4.7.4) – are you still seeing this issue? |
At least for me, all rpc 32603 errors are due to my own fault, like 3 reasons: 1) not having latest contract json in dApp, 2) migrations not reset, or 3) wrong network (json specifies one, you try to connect to another). Metamask works fine. |
The contract is working fine because if I don't use metamask then I'll be able to call the function. Metamask version: 4.9.3 PS: Happens in Firefox too |
@birdkingz This thread has become a catch-all for people receiving this generic error code. Please open a new issue, and include specific reproduction steps, such as a Dapp or your contract's address and the transaction whose estimation fails. |
If you encounter an issue similar to this, please open a new issue, and include specific reproduction steps, such as a Dapp or your contract's address and the transaction whose estimation fails. |
Metamask Team, your wallet is so rad. But there's still an error deploying on Remix Plugin for vscode. there are errors deploying: error: invalid json rpc response: {"id":36,"jsonrpc":"2.0"} Hopefully, you can fix it. Thanks in advance |
Does not work from January 26, 2018.
I, too, have such a mistake. She appeared since January 26, 2018. I know for sure that it was not on January 25, 2018. I implemented a smart contract without the error. On January 27, 2018, I was no longer able to make this smart contract a reality. The error manifests itself when a smart contract is made with parameters. On the main network, this error exists. On the network Ropsten it is not.
Everyone talks about this:
https://gitter.im/ethereum/remix
The text was updated successfully, but these errors were encountered: