I’m using binance java api library in github to connect to binance’s api, but getting ConnectionRefusedException.
Is there anything wrong with binance websocket api? I even getting error with library’s examples.
I tested with this library> and got same exception!
Haven’t received other reports and it’s running well with: websocat -v 'wss://stream.binance.com:9443/ws/bnbusdt@kline_1m'
You can also try with https://binance-exchange.github.io/websocket-demo/.
Must be a local connection issue or with the use of library.
Looks like problem solved, now everything is “on time” and there are no disconnections.
I’ve noticed this problem too, about 10 hours ago ticker stream started throwing regular exceptions (every 1-2 min) and incoming data are not sent every 1s like they supposed to be.
Kline streams are fine.
My listener was working for months and there never was such problems (disconnections from time to time happens, but not such regular and with exception - malformed frame).
Someone should take a look at this.
That’s how my log looks like right now. Socket is disconneting (due to malformed frame) every minute or two.
2021-05-28 18:47:55.581: Socket is dead, restarting...
2021-05-28 18:48:42.886: Socket is dead, restarting...
2021-05-28 18:50:09.221: Socket is dead, restarting...
2021-05-28 18:51:30.548: Socket is dead, restarting...
2021-05-28 18:52:45.245: Socket is dead, restarting...
2021-05-28 18:53:45.040: Socket is dead, restarting...
2021-05-28 18:54:45.780: Socket is dead, restarting...
2021-05-28 18:56:18.684: Socket is dead, restarting...
Between disconnections I receive only few live data events: