Hello, I’m having issues when implementing my Twitch bot in Python.
My bot works fine at the beginning, along with all its commands, but after a while of running, it randomly fails.
the error its
C:\Users\nacho\OneDrive\Documentos\Streams\YummIA Python> & E:/python.exe “c:/Users/nacho/OneDrive/Documentos/Streams/YummIA Python/Bot YuumIA.py”
The channel “xxx” was unable to be joined. Check the channel is valid.
Task exception was never retrieved
future: <Task finished name=‘Task-382’ coro=<WSConnection._join_future_handle() done, defined at E:\Lib\site-packages\twitchio\websocket.py:325> exception=KeyError(‘xxx’)>
Traceback (most recent call last):
File “E:\Lib\asyncio\tasks.py”, line 490, in wait_for
The channel is mine, it exists, and it works when running the bot. As I mentioned, the error occurs after a while of operation. What could be the cause? What would be a possible solution?