Metamask-extension: Internal JSON-RPC error -32603 for big contract on mainnet

Created on 29 Jan 2018  路  14Comments  路  Source: MetaMask/metamask-extension

Just posting this here cause this error pops up while deploying big contract on mainnet from remix.
Not sure it is completely related to metamask though.

Invalid JSON RPC response: {"id":858,"jsonrpc":"2.0","error":{"code":-32603}}
comment from user :
"I managed to deploy small contracts on mainnet and it's fine, then i tried a longer contract on mainnet it fails while, the exact same code is fine on Ropsten and Rinkeby"

P1-asap T00-bug

Most helpful comment

Not fixed yet.. I'm running into the same issue.

All 14 comments

What version of MetaMask are you on?

3.13.7
seems to work when a mainnet Custom RPC server is setup

This might be fixed later today, let us know tomorrow if you could if this is still happening. Has to do with a new REST API we're using with Infura.

3.13.8
I'm getting the same kind of error when deploying a contract.
I suspect that the issue comes from infura too.
It happens 3 out of 4 times.

screen shot 2018-01-30 at 3 05 11 pm

Mine is a HTTP 500 error.

To isolate this, we could really use strong reproduction steps. That would be either the contract code that you can't deploy, or the exact request that is throwing this error.

To copy the request:

  1. Open the background inspector as described here under "Background Logs".
  2. Click the Network tab.
  3. Reproduce the issue.
  4. Look for a red item in the network list.
  5. Right-click that item and click Copy as cURL
  6. Paste that result either here or to us in an email to [email protected]

here is a code sample that is reported to replicate the issue:

pragma solidity ^0.4.16;

contract a {
    string public name1 = "abcsdfsdfs";
    string public name2 = "abcsdfsdfsds";
    string public name3 = "abcsdfsdfsdsc";
    string public name4 = "abcsdfsdfsdscddc";
    string public name5 = "abddddddc";
    string public name6 = "abddddsdc";
    string public name7 = "abddddddc";
    string public name8 = "abddddddc";
    string public name9 = "abddddc";
    string public name10 = "addddbc";
    string public name11 = "abddddc";
    string public name12 = "addddbc";
    string public name13 = "abddddc";
    string public name14 = "addddbc";
    string public name15 = "abcdddd";
}

Alright, Infura believes they've found the root of this problem, and say it should be fixed now!

If anyone can confirm this isn't fixed, I will re-open.

Not fixed yet.. I'm running into the same issue.

Still happening with me

I believe this is a duplicate of #3140.

Getting the same error for a very simple contract
pragma solidity ^0.4.6; contract Person{}

Getting that error when trying to open debugger. In Remix, open debugger tab, enter block number and tx, press Play. Get Invalid JSON RPC response: {"id":1763,"jsonrpc":"2.0","error":{"code":-32603}}

I got error "Invalid JSON RPC response: {"id":3,"jsonrpc":"2.0","error":{"code":-32603}}" when I call following function.

       web3.personal.unlockAccount('0x4DbA61ebb5892778F6C31Af8948C9C73930b093F', 'xxxxx', 30, function (err, rt) {
            console.log(err);
           .....
        });

This error code can be thrown for a variety of reasons, so if you're getting this error, please open a fresh issue with specific reproduction steps, including the system you're on, and the browser you're using, and we'll try to debug this when we're able to.

Was this page helpful?
1 / 5 - 1 ratings

Related issues

glitch003 picture glitch003  路  3Comments

BassBauman picture BassBauman  路  3Comments

rossbulat picture rossbulat  路  3Comments

kumavis picture kumavis  路  3Comments

aakilfernandes picture aakilfernandes  路  3Comments