How often and how many times does commands.Bot
attempt to connect to a channel?
#400
-
I had a bot in a working stage online for a few days only to wake up and see dozens of error messages and the bot not responding to commands. The errors were in the form of:
were repeated dozens of times. After those messages were done repeating, a bunch of Tracebacks started repeating as well:
Should I report this as a bug, or am I missing something? I've done some digging in websocket.py, but I couldn't find what could cause this many repeated calls. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I have several people testing a fix for this. In websocket.py in the await self.authenticate(self._initial_channels)
self._keeper = asyncio.create_task(self._keep_alive()) # Create our keep alive.
self._reconnect_requested = False
if not self._task_cleaner or self._task_cleaner.done():
self._task_cleaner = asyncio.create_task(self._task_cleanup()) # Create our task cleaner.
self._ws_ready_event.set() Once confirmed everything is stable for everyone over a time period and a RECONNECT is received I'll push it. |
Beta Was this translation helpful? Give feedback.
-
Just for information purposes, I have pushed the change to master. This can be installed directly until next release. |
Beta Was this translation helpful? Give feedback.
I have several people testing a fix for this.
This only occurs after Twitch sends a forced RECONNECT.
In websocket.py in the
_connect
methodChange the code to to this (It's simply adding
self._reconnect_requested = False
Once confirmed everything is stable for everyone over a time period and a RECONNECT …