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
I have been trying to use this very useful app you have built, however running into lot of error issues as it throws these following erorrs namely cannot write to closing transport and unclosed client session errors which lead to event loop getting stuck and the subsequent methods are not able to be invoked.
Kindly provide solutions to these issues.
E [2022-12-04 11:51:35,324] Task exception was never retrieved future: <Task finished name='Task-266911' coro=<HuobiUsdtSwapCrossTrade._send_heartbeat_msg() done, defined at /Huobi_Futures/alpha/platforms/huobi_usdt_swap_cross_trade.py:144> exception=ConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/FxCryptoApp/Huobi_Futures/alpha/platforms/huobi_usdt_swap_cross_trade.py", line 149, in _send_heartbeat_msg await self.ws.send_json(data) File "/usr/local/lib/python3.9/site-packages/aiohttp/client_ws.py", line 164, in send_json await self.send_str(dumps(data), compress=compress) File "/usr/local/lib/python3.9/site-packages/aiohttp/client_ws.py", line 150, in send_str await self._writer.send(data, binary=False, compress=compress) File "/usr/local/lib/python3.9/site-packages/aiohttp/http_websocket.py", line 687, in send await self._send_frame(message, WSMsgType.TEXT, compress) File "/usr/local/lib/python3.9/site-packages/aiohttp/http_websocket.py", line 598, in _send_frame raise ConnectionResetError("Cannot write to closing transport")
E [2022-12-04 11:51:35,372] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950250> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866951160> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866914910> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868abd940> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866914b80> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950b20> E [2022-12-04 11:51:35,374] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950730> E [2022-12-04 11:51:35,374] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950d60> E [2022-12-04 11:51:35,374] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866954610> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa8669504c0> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866954ca0> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa8669991c0> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a62640> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a625b0> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a627f0> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866952760> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa8669524f0> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c85d60> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866939400> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c3c130> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866939e20> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c3d6a0> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950070> E [2022-12-04 11:51:35,378] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a628b0> E [2022-12-04 11:51:35,378] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c3c880>
The text was updated successfully, but these errors were encountered:
I have been trying to use this very useful app you have built, however running into lot of error issues as it throws these following erorrs namely cannot write to closing transport and unclosed client session errors which lead to event loop getting stuck and the subsequent methods are not able to be invoked.
Kindly provide solutions to these issues.
E [2022-12-04 11:51:35,324] Task exception was never retrieved future: <Task finished name='Task-266911' coro=<HuobiUsdtSwapCrossTrade._send_heartbeat_msg() done, defined at /Huobi_Futures/alpha/platforms/huobi_usdt_swap_cross_trade.py:144> exception=ConnectionResetError('Cannot write to closing transport')> Traceback (most recent call last): File "/FxCryptoApp/Huobi_Futures/alpha/platforms/huobi_usdt_swap_cross_trade.py", line 149, in _send_heartbeat_msg await self.ws.send_json(data) File "/usr/local/lib/python3.9/site-packages/aiohttp/client_ws.py", line 164, in send_json await self.send_str(dumps(data), compress=compress) File "/usr/local/lib/python3.9/site-packages/aiohttp/client_ws.py", line 150, in send_str await self._writer.send(data, binary=False, compress=compress) File "/usr/local/lib/python3.9/site-packages/aiohttp/http_websocket.py", line 687, in send await self._send_frame(message, WSMsgType.TEXT, compress) File "/usr/local/lib/python3.9/site-packages/aiohttp/http_websocket.py", line 598, in _send_frame raise ConnectionResetError("Cannot write to closing transport")
E [2022-12-04 11:51:35,372] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950250> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866951160> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866914910> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868abd940> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866914b80> E [2022-12-04 11:51:35,373] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950b20> E [2022-12-04 11:51:35,374] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950730> E [2022-12-04 11:51:35,374] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950d60> E [2022-12-04 11:51:35,374] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866954610> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa8669504c0> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866954ca0> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa8669991c0> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a62640> E [2022-12-04 11:51:35,375] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a625b0> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a627f0> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866952760> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa8669524f0> E [2022-12-04 11:51:35,376] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c85d60> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866939400> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c3c130> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866939e20> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c3d6a0> E [2022-12-04 11:51:35,377] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866950070> E [2022-12-04 11:51:35,378] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa866a628b0> E [2022-12-04 11:51:35,378] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fa868c3c880>
The text was updated successfully, but these errors were encountered: