-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[v1.2.1] Connection not Open. #3092
Comments
Thanks for opening this issue! Could you provide an explicit example setup to reproduce this issue? |
It's so simple. just const web3 = new Web3('ws://' + serverList[0].host + ":" + serverList[0].port); connect Socket.
or
Call Web.eth function. Somtimes I got 'Connection not Open Error' !!! i'm going crazy.. It happens only occasionally, so it's going crazy. |
Thanks. This got fixed in the 2.x branch and will be back-ported asap. |
I got this error too. It happens only occasionally! And eth.subscribe('newBlockHeaders') cannot get data anymore |
This should be resolved with the recent Websockets upgrade. You can configure the provider to automatically reconnect if your connection is unstable. |
Description
Expected behavior
I get an error periodically.
maybe
web3.eth.getBalance or web.eth.getBlock .. etc
Actual behavior
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: