#High ping and websocket fails

1 messages · Page 1 of 1 (latest)

bitter hazel
#

Hi I'm currently experiencing very high pings, slow responses and interactions failing cause of that
I've looked in my logs and I see this:

INFO:disnake.gateway:Websocket closed with WSCloseCode.OK, cannot reconnect.
ERROR:disnake.shard:Attempting a reconnect for shard ID 0 in 1.29s
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/disnake/shard.py", line 164, in worker
    await self.ws.poll_event()
  File "/usr/local/lib/python3.10/site-packages/disnake/gateway.py", line 734, in poll_event
    raise ConnectionClosed(self.socket, shard_id=self.shard_id, code=code) from None
disnake.errors.ConnectionClosed: Shard ID 0 WebSocket closed with 1000: Unknown reason

Does anyone know why?
This happens on all 4 shards
I'm running version 2.9.2 and Python 3.10.12

ionic juniper
#

I had this

#

I updated to python 3.11 and it went away

#

#help-other message

#

#help-other message

bitter hazel
#

hm

#

im gonna try that rn

ionic juniper
bitter hazel
#

did you face high ping too w/ your issue?

ionic juniper
#

the very last few comments have the solution, was an aiohttp problem

ionic juniper
#

just kepy seeing websocket closed in logs

bitter hazel
#

its like 2000ms

#

and shards keep dropping

ionic juniper
#

see if that change helps

bitter hazel
#

im praying it does, this happened on my last VPS on DO I think

ionic juniper
#

You switched off Digital ocean because of this issue?

#

or other reasons

bitter hazel
ionic juniper
#

Right

bitter hazel
#

I was also on 3.10

ionic juniper
#

yea it was the same problem

#

do you use DO's managed databases by any chance?

bitter hazel
ionic juniper
#

Cool cool

bitter hazel
#

Yep can confirm 2 hours of stability moving to 3.11

#

really odd that it happened so often at one time

ionic juniper
bitter hazel