loop.run_until_complete(asyncio.gather(*tasks_to_start))
Traceback (most recent call last):
File "/user/app/TwitchHenCommander/source/main.py", line 65, in
main()
File "/user/app/TwitchHenCommander/source/main.py", line 61, in main
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/user/app/TwitchHenCommander/source/twitch_api_websocket.py", line 22, in websocket_listener
message = json.loads(await connection.recv())
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 568, in recv
await self.ensure_open()
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 948, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: received 4004 (private use) client reconnect grace time expired; then sent 4004 (private use) client reconnect grace time expired
await self._waiter
websockets.exceptions.ConnectionClosedError: no close frame received or sent
raise self.connection_closed_exc()
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 939, in ensure_open
await self.ensure_open()
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 568, in recv
^^^^^^^^^^^^^^^^^^^^^^^
message = json.loads(await connection.recv())
File "/user/app/TwitchHenCommander/source/twitch_api_websocket.py", line 22, in websocket_listener
^^^^^^^^^^^^^^^
return future.result()
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
loop.run_until_complete(asyncio.gather(*tasks_to_start))
File "/user/app/TwitchHenCommander/source/main.py", line 65, in
File "/user/app/TwitchHenCommander/source/main.py", line 61, in main
main()
Traceback (most recent call last):
The above exception was the direct cause of the following exception:
ConnectionResetError: [Errno 104] Connection reset by peer
^^^^^^^^^^^^^^^^^^^^^^^^^
nbytes = self._sock.recv_into(buf)
File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 970, in _read_ready__get_buffer
File "/usr/local/lib/python3.11/asyncio/streams.py", line 522, in _wait_for_data
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.11/asyncio/streams.py", line 729, in readexactly
data = await reader(2)
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 963, in transfer_data
message = await self.read_message()
^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 1033, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 1108, in read_data_frame
frame = await self.read_frame(max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 1165, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.11/site-packages/websockets/legacy/framing.py", line 68, in read