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
Infura can close websocket connection when request takes a lot of time, for example query past events starting block 0 on mainnet. In this case web3 produce this error in console:
web3-providers.umd.js:293 Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
at WebsocketProvider._callee2$ (web3-providers.umd.js:293)
at tryCatch (runtime.js:45)
at Generator.invoke [as _invoke] (runtime.js:264)
at Generator.prototype.(:3000/anonymous function) [as next] (http://localhost:3000/static/js/0.chunk.js:112974:21)
at asyncGeneratorStep (asyncToGenerator.js:3)
at _next (asyncToGenerator.js:25)
Description
Infura can close websocket connection when request takes a lot of time, for example query past events starting block 0 on mainnet. In this case web3 produce this error in console:
https://github.com/ethereum/web3.js/blob/1.0/packages/web3-providers/lib/providers/AbstractSocketProvider.js#L195 is the location in file where the error occurs.
Screenshot from debugger:
Steps to reproduce the behavior
Versions
The text was updated successfully, but these errors were encountered: