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 run my discord.py bot on my win11 desktop computer 24/7.
However, the following error occurred once in a while.
Attempting a reconnect in 0.30s
Traceback (most recent call last):
File "venv\lib\site-packages\discord\client.py", line 659, in connect
await self.ws.poll_event()
File "venv\lib\site-packages\discord\gateway.py", line 646, in poll_event
raise ConnectionClosed(self.socket, shard_id=self.shard_id, code=code) from None
discord.errors.ConnectionClosed: Shard ID None WebSocket closed with 1000
This error does not affect the program and the program is still running normally, but I want to ignore or catch this error message.
Does anyone know how to ignore or catch the above error?
Thanks~
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I run my discord.py bot on my win11 desktop computer 24/7.
However, the following error occurred once in a while.
Attempting a reconnect in 0.30s
Traceback (most recent call last):
File "venv\lib\site-packages\discord\client.py", line 659, in connect
await self.ws.poll_event()
File "venv\lib\site-packages\discord\gateway.py", line 646, in poll_event
raise ConnectionClosed(self.socket, shard_id=self.shard_id, code=code) from None
discord.errors.ConnectionClosed: Shard ID None WebSocket closed with 1000
This error does not affect the program and the program is still running normally, but I want to ignore or catch this error message.
Does anyone know how to ignore or catch the above error?
Thanks~
Beta Was this translation helpful? Give feedback.
All reactions