ConnectionClosed(self.socket, code=code) from None
Reproduction Steps
Multiple WebSocket closed with 1000 and the Wait time raises all the time, to more than 15 minutes.
This did not accure with the same code, 3 weeks ago.
Maybe discord changed their handling or raised security.
Code
discord.client - DISCORD_MID - ERROR - Attempting a reconnect in 122.29s
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 817, in connect
await self.ws.poll_event()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\gateway.py", line 673, in poll_event
raise ConnectionClosed(self.socket, code=code) from None
discord.errors.ConnectionClosed: WebSocket closed with 1000
Expected Results
No WebSocket closure or faster reconnection.
Actual Results
discord.errors.ConnectionClosed and sleep times that raise from 1 second up to 1000 seconds.
System Information
Python v3.10.8-final
discord.py-self v2.1.0-alpha
discord.py-self metadata: v2.1.0a4718+g7e5ff57a
aiohttp v3.8.4
system info: Windows 10 10.0.14393
Checklist
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
Summary
ConnectionClosed(self.socket, code=code) from None
Reproduction Steps
Multiple WebSocket closed with 1000 and the Wait time raises all the time, to more than 15 minutes.
This did not accure with the same code, 3 weeks ago. Maybe discord changed their handling or raised security.
Code
Expected Results
No WebSocket closure or faster reconnection.
Actual Results
discord.errors.ConnectionClosed and sleep times that raise from 1 second up to 1000 seconds.
System Information
Checklist
Additional Information
No response