I’ve been using remix to mint on my contracts for several months now, but today I just started getting the following error:
[ethjs-query] while formatting outputs from RPC ‘{“value”:{“code”:-32603,“data”:{“code”:-32603,“message”:“Internal error”}}}’.
I’ve tried adjusting gas limits, priority fees, and resetting the account, but nothing seems to be working. Any ideas or suggestions?
2 Likes
Same here. Not sure whats going on. Also can’t change anything in network settings.
1 Like
Hey @NukeCouture and @alpacats , welcome to the MetaMask community!
This is likely an issue with your smart contract you are trying to deploy. Possibly something like this:
I had the same error (JSON-RPC error -32603). My issue was the I defined my payable in my smart contract like this:
“function deposit() payable public{}”, whereas I needed to make use of the fallback() and receive() functions. I replaced that line of code with “fallback() external payable{}” and “receive() external payable()” and it works!
Here is more information that may help you:
opened 07:46PM - 17 Oct 19 UTC
type-bug
needs-reproduction
area-gas
Sev2-normal
**To Reproduce**
I'm not 100% sure what the precise cause of this bug is, but… there exists a combination of 1) Solidity code 2) Ganache running locally 3) MetaMask v7.2.3 where a contract function invocation fails as such:
```
inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error. {code: -32603, message: "Internal JSON-RPC error.", data: {…}, stack: "Error: "message" must be a nonempty string.↵ at…eogaeaoehlefnkodbefgpgknn/background.js:1:1207412"}
```
The fix is to specify the `gasLimit` in the code. As such, I believe that this is either a bug in Ganache's gas estimation mechanism, or the way that MetaMask makes gas estimation requests.
I hope this helps anyone who's searching for a solution. In the meantime, I'll work on a simple example to reproduce this bug.
system
Closed
April 13, 2022, 12:05pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.