xchange-stream icon indicating copy to clipboard operation
xchange-stream copied to clipboard

429 Too Many Requests

Open Dima-HAN opened this issue 6 years ago • 5 comments

From time to time I am getting this error, and it goes into the loop, brings CPU to 100%, I guess, it tries to reconnect unsuccessfully. Is there a delay I can set for reconnect ?

[nioEventLoopGroup-13-3] WebSocketClientHandler [65]: WebSocket Client failed to connect. Invalid handshake response getStatus: 429 Too Many Requests

Dima-HAN avatar Jun 04 '18 15:06 Dima-HAN

Which exchange?

badgerwithagun avatar Jun 09 '18 09:06 badgerwithagun

Ah Bitfinex as mentioned on #191

badgerwithagun avatar Jun 09 '18 09:06 badgerwithagun

In the last version loop without delay has been fixed, delay NettyStreamingService.DEFAULT_RETRY_DURATION (15 sec) is used between reconects. CPU to 100% should not happaned. But anyway 15 sec is not enought for stop blocking in case "429 Too Many Requests" and we should think how to detect blocking case and myabe increase deleay for stopping blocking.

pchertalev avatar Nov 14 '18 14:11 pchertalev

I created pool request for limiting BFX open connection operations

pchertalev avatar Jan 14 '19 12:01 pchertalev

https://github.com/bitrich-info/xchange-stream/pull/269

pchertalev avatar Jan 14 '19 12:01 pchertalev