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"
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.

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:
Network tab.Copy as cURLhere 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.
Most helpful comment
Not fixed yet.. I'm running into the same issue.