The following error occurs if the bot is running for 1 day without stream:
twitchio.ext.commands.errors.CommandNotFound: No command "shutdown" was found.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 963, in transfer_data
message = await self.read_message()
File "/usr/local/lib/python3.10/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.10/site-packages/websockets/legacy/protocol.py", line 1108, in read_data_frame
frame = await self.read_frame(max_size)
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 1165, in read_frame
frame = await Frame.read(
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/framing.py", line 68, in read
data = await reader(2)
File "/usr/local/lib/python3.10/asyncio/streams.py", line 708, in readexactly
await self._wait_for_data('readexactly')
File "/usr/local/lib/python3.10/asyncio/streams.py", line 502, in _wait_for_data
await self._waiter
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 854, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/user/app/TwitchHashtagBot/source/main.py", line 41, in <module>
main()
File "/user/app/TwitchHashtagBot/source/main.py", line 37, in main
loop.run_until_complete(asyncio.gather(*tasks_to_start))
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/user/app/TwitchHashtagBot/source/twitch_api_websocket.py", line 59, in websocket_listener
event = await websocket.recv()
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 568, in recv
await self.ensure_open()
File "/usr/local/lib/python3.10/site-packages/websockets/legacy/protocol.py", line 939, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent```
What
The following error occurs if the bot is running for 1 day without stream: