-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error when close sockets - cannot found .fail_connection() #1478
Comments
Hello @Alfavisioner, Thanks for reporting, today we will release a new version that fixes this issue. |
Thank you! |
Downgrade websockets can walkaround this:
|
@yitech Correct but shortly we will release a version that works with every |
@yitech @Alfavisioner We just released a new version with the fix, can you please upgrade your python-binance and try again? |
Yes, the latest version of the Python-Binance library works successfully. However, I am experiencing other issues when using the latest version of CCXT (4.4.34) instead: CCXT, in combination with Aiohttp 3.11.8, cannot start a socket for Binance. |
I think this is just a warning but we will check it
@Alfavisioner Can you please open an issue there? |
Yes, it is logging in the code:
|
Describe the bug
When try to close klines socket connection, exception is raised
AttributeError: 'ClientConnection' object has no attribute 'fail_connection'
To Reproduce
self.wsm is BinanceWebSocketManager
Stop working socket:
self.wsm.stop_socket(running_socket)
And
AttributeError: 'ClientConnection' object has no attribute 'fail_connection' is raised
from ReconnectingWebsocket:
because self.ws is ClientConnection and does not have method fail_connection()
Only WebSocketCommonProtocol has that method
Expected behavior
Close socket
Environment (please complete the following information):
Logs or Additional context
(aiohttp: 3.9.5)
The text was updated successfully, but these errors were encountered: