bitfinexcom / bitfinex-api-go

BITFINEX Go trading API - Bitcoin, Litecoin, and Ether exchange
https://www.bitfinex.com/
MIT License
310 stars 220 forks source link

Authed WS client continually disconnecting, err EOF #239

Open Bwahharharrr opened 1 year ago

Bwahharharrr commented 1 year ago

Issue type

Brief description

When connected via an authenticated WS, literally about every 1-2 minutes I am getting disconnected, constantly, error received: conn: X has failed | error EOF | reconnecting

Steps to reproduce

Additional Notes:

This line, https://github.com/bitfinexcom/bitfinex-api-go/blob/9e0b26f200fbe709d4b410f04c22418a782c8369/pkg/mux/client/client.go#L139

is where the error is picked up.

stemming from: https://github.com/bitfinexcom/bitfinex-api-go/blob/9e0b26f200fbe709d4b410f04c22418a782c8369/pkg/mux/client/client.go#L136

a string(ms) would normally show the contents of the incoming message, but when this error is produced, it is just empty. Maybe its an issue with how wsutil is handling in the incoming data from bitfinex ? Public ws connections seem fine, only the authed ones this happens to.