You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Inconsistently, the calls to web3 getBalance do not resolve. This is different from issue #5842
To Reproduce
Unfortunately we do not have good steps to reproduce, although this starts to happen after keeping the browser open for a while.
Expected behavior
Calls to web3 getBalance should always either resolve with the account balance or reject
More details
In our app, we make 3 back to back to back calls:
getAccounts() getNetwork() getBalance(address)
The first two calls go through fine, almost immediately.
The third getBalance call hangs, and even after waiting several minutes does not resolve.
Something interesting to note is that in MetaMask’s network tab - we’re not seeing any of the JSONRPC calls made to accounts, network, or balance. All we’re seeing is:
Both of these requests come back with valid responses.
Especially important is that we don’t see any calls to eth_getBalance, however, when the balance does successfully get fetched in our app, we do see those calls being made in the metamask network tab.
It's hard to reproduce this issue because it inconsistently starts happening. Enabling / disabling the metamask extension in chrome OR switching accounts to a different account will resolve the issue (but switching back to the original account experiencing the issue still causes the call to hang).
It might be helpful to note that enabling / disabling the extension then reinvokes the process of calling window.ethereum.enable for handling metamask's privacy update.
Browser details (please complete the following information):
OS: macOS High Sierra Version 10.13.3
Browser: Brave & Chrome
MetaMask Version: 5.0.3
The text was updated successfully, but these errors were encountered:
Describe the bug
Inconsistently, the calls to web3
getBalance
do not resolve. This is different from issue #5842To Reproduce
Unfortunately we do not have good steps to reproduce, although this starts to happen after keeping the browser open for a while.
Expected behavior
Calls to web3
getBalance
should always either resolve with the account balance or rejectMore details
In our app, we make 3 back to back to back calls:
getAccounts()
getNetwork()
getBalance(address)
The first two calls go through fine, almost immediately.
The third getBalance call hangs, and even after waiting several minutes does not resolve.
Something interesting to note is that in MetaMask’s network tab - we’re not seeing any of the JSONRPC calls made to accounts, network, or balance. All we’re seeing is:
https://api.infura.io/v1/jsonrpc/rinkeby/eth_blockNumber?params=%5B%5D
https://api.infura.io/v1/jsonrpc/rinkeby/eth_getBlockByNumber?params=%5B%220x342c2e%22%2Ctrue%5D
Both of these requests come back with valid responses.
Especially important is that we don’t see any calls to eth_getBalance, however, when the balance does successfully get fetched in our app, we do see those calls being made in the metamask network tab.
It's hard to reproduce this issue because it inconsistently starts happening. Enabling / disabling the metamask extension in chrome OR switching accounts to a different account will resolve the issue (but switching back to the original account experiencing the issue still causes the call to hang).
It might be helpful to note that enabling / disabling the extension then reinvokes the process of calling
window.ethereum.enable
for handling metamask's privacy update.Browser details (please complete the following information):
The text was updated successfully, but these errors were encountered: