Open platocrat opened 3 years ago
"Try increasing your slippage tolerance" seems to be a default message that doesn't apply here. I think the error message could be clearer - this is probably a problem with the JSON-RPC Provider. The error is coming either from the chain or the provider.
As a first step, I think the error message can be cleaned up. As a second step, this should probably be reproduced to determine why metamask is returning a JSON-RPC error in the first place.
Just as an FYI, I am getting this error constantly and not just once in a while when trying to swap from SNX-ETH or SNX-sUSD. Does it have to do with the liquidity (it should not for SNX-ETH)?
FYI: It happens very constantly when I try SNX-DAI or SNX-sUSD, when I use 1.1 SNX swap DAI, it can works but when I use 1.2 SNX swap to DAI, it always fail and pop up this error.
Same error, when I try to swap SNX to ETH or sUSD on Optimism
No error today. Was able to convert ETH to sUSD, sUSD to ETH and SNX to Eth.
I'm dealing with the same error and am not able to swap SNX for anything.
can't swap SNX on Optimism
Trying to swap base token "mooncrash" to bnb on pancakeswap but getting the issue Unknown error: "Internal JSON-RPC error.". Try increasing your slippage tolerance. Have changed slippage but does not help?
Object { code: -32603, message: "Internal JSON-RPC error.", data: {…} } code: -32603 data: Object { code: -32000, message: "execution reverted" } message: "Internal JSON-RPC error."
how to solve it
Hi, I managed to solve my "Internal JSON RPC" problem.
I hope it helped you.
These bugs were surfaced from community members in Optimism's Discord server.
Bug Description On rare occasions when you attempt to make a swap, you will receive an error that says something like:
Steps to Reproduce
Expected Behavior Clicking Swap should bring up the Confirm Swap modal.
Additional Context Here are screenshots of the community members sharing the error messages they received.
On reproducibility
I am able to reproduce this error only rarely. However, I've noticed that it tends to happen after I approve a token for trading, e.g. USDC.
For one of the users in the screenshot above, they say that they still cannot make a swap due to this error showing up incessantly.