-
Notifications
You must be signed in to change notification settings - Fork 738
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
Failed to subscribe to new newBlockHeaders to confirm the transaction receipts when await on a tx #260
Comments
After enabling source maps, here is the failing function.
Maybe this is related to the other error
That happens in
|
Related Uniswap/web3-react#63 |
Also related Uniswap/web3-react#64 |
Based on the analysis, it might be some sort of race condition. Trust Wallet returns transaction included in the block at the result of |
Confirming this also happens with MetaMask on Mobile, so seems to be WalletConnect issue itself. |
Related: |
Related coinbase/coinbase-wallet-sdk#19 |
The reason why this happens with mainnet only is that after some wait node returns a Mainnet is more clogged, so this is much more likely to happen with the mainnet as the transaction is not confirmed shortly. |
Also here is the reason why you might get both success and error response for the same transaction: When the |
Here is a mention that should be fixable in Web3.js 1.2.2 |
Web3.js 1.2.2 release notes hint about parameters you could use to mitigate this issue: |
Here is the actual logic what will happen: After timing out the HTTP call, web3.js tries to build a WebSocket subscription to start another wait mode. The error message is somewhat confusing, but when checking into web3.js internals that is even more scary. |
Opened an issue against web3.js |
I'm having the same problem, were you able to fix it? Also I'm getting this error randomly, did you noticed it too?:
|
It needs to be properly fixed in web3.js, but here is my workaround https://gist.github.com/miohtama/a91a5edabac6bf66de860a444fc13206#file-transaction-helper-component-ts-L326 |
Is this still an issue with latest (currently on v1.0.11)?? |
@miohtama I have the same issue occurring. web3 + metamask has the tx coming back to early, but how do you manage the data that comes back? previously it use to run something else underlying and you could get the events back. Now you no longer can and you get just the tx and it's logs |
@pedrouid so this issue is still on going, and the error is received randomly. After a transaction. Tx is made with walletconnect and mobile metamask. |
Hey I'm the Developer Advocate at WalletConnect. @miohtama, @FahdW, @themeltdown, are you still experiencing this issue? If so, have you attempted to use v2? |
This error is throw when you do
await web3.eth.send()
.Environment
I am getting this error transaction has been broadcasted (probably with a transaction confirmation). The error is Trust Wallet specific, it does not happen with MetaMask for Mobile or MetaMask (desktop).
The error comes from somewhere from
@walletconnect/web3-provider
package.However, the stacktrace is useless because of the minification. What would be a way to get source maps working with WalletConnect packages with ease?
Versions below.
The text was updated successfully, but these errors were encountered: