ethers.js icon indicating copy to clipboard operation
ethers.js copied to clipboard

error -32000, processing response error

Open onfalawnte opened this issue 3 years ago • 8 comments

Other function from the same contract work fine...

DATAPROTOCOL_CONTRACT.getUserAccountData(wallet).then((res:any[]) => {
console.log(res)
})

This one throw me this error. Someone can explain?

(node:23475) UnhandledPromiseRejectionWarning: Error: missing revert data in call exception (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":44,\"error\":{\"code\":-32000,\"message\":\"execution reverted\"}}","error":{"code":-32000},"requestBody":"{\"method\":\"eth_call\",\"params\":[{\"to\":\"0x7551b5d2763519d4e37e8b81929d336de671d46d\",\"data\":\"0xbf92857c000000000000000000000000c7ee2b140340801252e20e40c8f27a4bfe57d28f\"},\"latest\"],\"id\":44,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://polygon-rpc.com"}, data="0x", code=CALL_EXCEPTION, version=providers/5.5.0)

onfalawnte avatar Oct 25 '21 07:10 onfalawnte

Did you solve this? Currently facing something same issue

ccurves avatar Jan 15 '22 11:01 ccurves

Up this is an error for me too. I can't send polygon via alchemy.

nickjuntilla avatar Mar 03 '22 11:03 nickjuntilla

Can you include the code you are using to create the provider? Also, what version of ethers are you using?

ricmoo avatar Mar 03 '22 12:03 ricmoo

Yeah it's like this

let rpcProvider = 'https://eth-mainnet.alchemyapi.io/v2/xxxxxxx';
const provider = new ethers.providers.JsonRpcProvider(rpcProvider);
const wallet = new ethers.Wallet(priv, provider);

tx = await wallet.sendTransaction({
      to: user.pub,
      value: ethers.utils.parseEther(amount),
    });

"ethers": "^5.3.1",

nickjuntilla avatar Mar 04 '22 00:03 nickjuntilla

@nickjuntilla can you try once using latest ethers version? I can confirm that sending txs to polygon using alchemy, definitely has been working these days.

zemse avatar Mar 07 '22 03:03 zemse

Hy @nickjuntilla does this work? I used a similar thing and it doesn't work on Mumbai. Using alchemy. ethers version is 5.7.0

yanukadeneth99 avatar Aug 23 '22 15:08 yanukadeneth99

@yanukadeneth99 I believe I ended up using ethers to estimate the gas in a separate step to make it work.

nickjuntilla avatar Aug 23 '22 19:08 nickjuntilla

For me, polygon transactions took waaaay more time. So I had to add maxFeePerGas and maxPriorityFeePerGas in. After that, it works sweetly.

yanukadeneth99 avatar Aug 23 '22 20:08 yanukadeneth99