-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't decode _____ from ABI: 0x #5588
Comments
Could you expand the params for the requested payload? Possibly a snippet of the source code. My reproduction returned the expected result as the curl.
Matches the curl
|
The actual call is on this contract: This works most of the time, but sometimes will result in the error above. If you run the following code in the Chrome developer console on https://dapp.originprotocol.com with MetaMask 4.16.0 you should see the issue anywhere from 0-60 seconds in:
|
@nick @micahalcorn see if this build fixes your issue #5614 (comment) |
We seem to be getting this issue as well, @nick did you find any workaround for this? |
I think those invalid responses are also cached by metamask so any kind of retry strategy also fails to work its kind of a big issue |
I am also receiving this error intermittently, but frequently, when connected to Main Ethereum Network in Metamask. It happens when I am communicating with a different (non-Origin) smart contract. I do not have any issues when I connect via RPC to my own node. |
I am getting the same thing for the ENS app: https://github.com/ensdomains/ens-app I get it randomly for calls to a Resolver contract or Registrar contract and it is mainly the error: I started getting it when I upgraded to web3 1.0. I did not have this problem in web3 0.19, but it sounds similar to @micahalcorn's description. |
I am also getting this error intermittently for even simple balanceOf calls to ERC20 token contracts. The problem disappears when I am running my own node as well. The caching from metamask also makes it so that once an error has occurred, it is impossible to retry and make progress. The frequency of this issue is quite high from my end, about 1/10 calls fails like this and there seems to be no pattern which of the calls fails (dapp makes a few calls in sequence). I am currently using web3 1.0 as well and connecting through metamask. The caching problem in metamask is what is really causing a lot of pain. The fact that it is caching errors makes it difficult to recover. In event of a bad response, is there a way to ignore the cache and force a redo on a call? |
Related to #5868 (comment) |
This looks clearly caused by a bug in geth we have reported here: |
@danfinlay @nick |
Describe the bug
We at Origin are experiencing intermittent bad responses from Web3 reads. The issue seems to be related to passing a specific block number in
web3.eth.call
rather than'latest'
. It happens intermittently to some users, but it seems to be certainly reproducible on MetaMask 4.16. The bad response is eitherCouldn't decode address from ABI: 0x
orCouldn't decode uint256 from ABI: 0x
.To Reproduce
Request Payload
Response
Expected behavior
Browser details (please complete the following information):
The text was updated successfully, but these errors were encountered: