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
The above line does not handle promise rejection that leads to complete freeze of application calling sendTransaction. The promise can be rejected in case of connection failure, for example.
Steps to reproduce the behavior
Set any provider that is shut down (you can even point it to inexistent url)
Try to call web3.eth.sendTransaction(...)
Error Logs
Unhandled promise rejection.... and stuff
Versions
web3.js: 1.0.0-beta.48
nodejs: any
browser: n/a
ethereum node: n/a
The text was updated successfully, but these errors were encountered:
Description
sendTransaction does not handle promise rejection sometimes and it leads to compete calling application freeze.
Expected behavior
Any error inside sendTransaction should be propagated to the caller.
Actual behavior
https://github.com/ethereum/web3.js/blob/5023c450a783b892da862712e0d8dc26cddba4ab/packages/web3-core-method/src/methods/transaction/SendTransactionMethod.js#L80
The above line does not handle promise rejection that leads to complete freeze of application calling sendTransaction. The promise can be rejected in case of connection failure, for example.
Steps to reproduce the behavior
web3.eth.sendTransaction(...)
Error Logs
Unhandled promise rejection.... and stuff
Versions
The text was updated successfully, but these errors were encountered: