-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[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: