#WSServerHandshakeError despite no internet trouble?

1 messages · Page 1 of 1 (latest)

autumn apexBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

eager islandBOT
#
BrbSoaking
Warning

@ebon badger has been warned

Reason

Sent an invite link

Admin

JARVIS#9567 (@eager island)

ebon badger
#

hm.

#

that was a link to a different post in this server.

#

guess i need to start using git for in-progress discord messages!

eager islandBOT
#
BrbSoaking
Warning

@ebon badger has been warned

Reason

Sent an invite link

Admin

JARVIS#9567 (@eager island)

ebon badger
#

???????????????????

#

There were zero invite links

#

gg

#
    await self.gateway.run()
  File "/home/ubuntu/orinswift-bot/raven-court/queuebot/venv/lib/python3.10/site-packages/interactions/api/gateway/gateway.py", line 171, in run
    await self.dispatch_opcode(data, op)
  File "/home/ubuntu/orinswift-bot/raven-court/queuebot/venv/lib/python3.10/site-packages/interactions/api/gateway/gateway.py", line 194, in dispatch_opcode    return await self.reconnect(resume=True, url=self.ws_resume_url)                                                                                          File "/home/ubuntu/orinswift-bot/raven-court/queuebot/venv/lib/python3.10/site-packages/interactions/api/gateway/gateway.py", line 281, in reconnect
    await super().reconnect(resume=resume, code=code, url=url)                                                                                                File "/home/ubuntu/orinswift-bot/raven-court/queuebot/venv/lib/python3.10/site-packages/interactions/api/gateway/websocket.py", line 259, in reconnect
    self.ws = await self.state.client.http.websocket_connect(url or self.ws_url)                                                                              File "/home/ubuntu/orinswift-bot/raven-court/queuebot/venv/lib/python3.10/site-packages/interactions/api/http/http_client.py", line 589, in websocket_connect
    return await self.__session.ws_connect(
  File "/home/ubuntu/orinswift-bot/raven-court/queuebot/venv/lib/python3.10/site-packages/aiohttp/client.py", line 851, in _ws_connect
    raise WSServerHandshakeError(
aiohttp.client_exceptions.WSServerHandshakeError: 520, message='Invalid response status', url=URL('IsThisInviteLinkInTheRoomWithUsRightNow?')```

TLDR: Reason to believe it's not the bot's internet, don't need people to agree. I want to restart the bot when it happens. How to catch this error so I can restart?