Closed Twister7 closed 2 years ago
You receive {'e': 'listenKeyExpired', 'E': 1632180531342}
as last data record via websocket and get disconnected?
Actually I would expect that the userdata stream reconnects then, but this does not happen?
How many times has CRITICAL:root:BinanceWebSocketApiRestclient._request() - error_msg: HTTPSConnectionPool(host='fapi.binance.com', port=443): Max retries exceeded with url: /fapi/v1/listenKey (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff8046af70>: Failed to establish a new connection: [Errno 110] Connection timed out'))
been reported to you?
A log file would help me please!
Thanks Oliver,
You receive {'e': 'listenKeyExpired', 'E': 1632180531342} as last data record via websocket and get disconnected?
Yes
Actually I would expect that the userdata stream reconnects then, but this does not happen?
No, I should restart docker so ListenKey will change and its start receiving data again
How many times has CRITICAL:root:BinanceWebSocketApiRestclient._request() - error_msg: HTTPSConnectionPool(host='fapi.binance.com', port=443): Max retries exceeded with url: /fapi/v1/listenKey (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff8046af70>: Failed to establish a new connection: [Errno 110] Connection timed out')) been reported to you?
more than 5 times for different user during this week. The sequence is like this : I get above error then after afew minutes I get listenKeyExpired.
A log file would help me please!
I set the log, As soon as it happening again I will update this issue.
BTW, I setup a new server with fresh IP and it happened again, So my first assumption was wrong and it's not about too many request from my IP.
requesting a new listenkey costs 1 weight and you can use 1000 per minute... i dont think thats the reason.
I wait for your log file.
i have improved the logging in the affected area, can you please install this version:
pip install https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/tarball/master --upgrade
and post the new error message if it happens again.
This patch will be included in the next release.
From Telegram: "It was DigitalOcean for me, they had a day+ of network outages"
I close this. If this happens again, please open with the new error log (> ubwa 1.34.1)!
Thanks!
Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
Select one:
Environment
What kind of internet connection do you have?
Average system load (CPU)
Hardware specification
Operating System? (include version)
Options
Which endpoint do you connect?
Python Version Requirement
Exact Python Version?
Pip Version?
Dependencies
Run
pip list > pip_list.txt
and upload the file.UNICORN Binance WebSocket API Version?
Description of your issue