Open sherxon211 opened 3 years ago
I'm getting the same issue. Any help here would be appreciated!
Hello @sherxon211 and @jchappe, same problem here. Did you manage to solve the problem?
Same Issue!
I am exploring it a little bit and found that in binance/streams.py
there is somewhere code like this
if self._conn and hasattr(self._conn, 'protocol'):
await self._conn.__aexit__(exc_type, exc_val, exc_tb)
, but somewhere like this (no hasattr
check)
if self.ws and self._conn:
await self._conn.__aexit__(None, None, None)
I don't know if this is still relevant for anyone or not, but keep in mind
ERROR:asyncio:Task exception was never retrieved future: <Task finished name='Task-5' coro=<ThreadedApiManager.start_listener() done, defined at C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\binance\threaded_stream.py:42> exception=AttributeError("'Connect' object has no attribute 'protocol'")>
Environment (please complete the following information):