You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
async def __aexit__(self, exc_type, exc_val, exc_tb):
if self._exit_coro:
await self._exit_coro(self._path)
self.ws_state = WSListenerState.EXITING
if self.ws:
self.ws.fail_connection()
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):
Python version: 3.13
OS: [Windows 10, also ubuntu]
python-binance version 1.0.22
Logs or Additional context
(aiohttp: 3.9.5)
The text was updated successfully, but these errors were encountered:
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: