DiscordSocketClient
throws every few hours an exception
#3097
Unanswered
Suiram1701
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've running a Discord.NET bot on a Raspberry PI and noticed in the logs that aroud every three hours the gateway disconnects with an exception und reconnects a few seconds later.
It disconnects with two possible exceptions:
WebSocketException
with the messageWebSocket connection was closed
and the stacktraceGatewayReconnectException
with the messageServer requested a reconnect
and stacktraceIn the second one I see that the server want's to reconnect but shouldn't Discord.NET handle instead of throwing an exception? Or do I have to fix something in configuration?
Here is also a screenshot from two of these events in the logs (on

Gateway: (null)
the excpetions occurr):Beta Was this translation helpful? Give feedback.
All reactions