Connection terminated (4000, '')
Created by: GuerreroBit
Summary
Is normal this message?
[111 /ConnectionCl] [Crit ] Connection terminated (4000, ''), reconnecting
Details
The bot is on a console project with net5.0 (C# 8) and I publish it on a single file and execute it on Ubuntu 20.04. The error appears even when nothing is being done (I think). This error is not very important because it automatically reconnect, but it appears every ~1-2 hours (sometimes more) and flood the console
Notes
(I censure the numbers, I don't know if it's important)
[2021-07-10 15:15:28 +02:00] [109 /Heartbeat ] [Trace] Sending heartbeat
[2021-07-10 15:15:28 +02:00] [119 /Gateway ↑ ] [Trace] {"op":1,"d":*****}
[2021-07-10 15:15:28 +02:00] [118 /Gateway ↓ ] [Trace] {"t":null,"s":null,"op":11,"d":null}
[2021-07-10 15:15:28 +02:00] [105 /WebSocketRec] [Trace] Received HEARTBEAT_ACK (OP11, 104ms)
[2021-07-10 15:15:30 +02:00] [118 /Gateway ↓ ] [Trace] {"t":null,"s":null,"op":7,"d":null}
[2021-07-10 15:15:30 +02:00] [105 /WebSocketRec] [Trace] Received RECONNECT (OP7)
[2021-07-10 15:15:30 +02:00] [111 /ConnectionCl] [Debug] Connection closed (4000, '')
[2021-07-10 15:15:30 +02:00] [111 /ConnectionCl] [Crit ] Connection terminated (4000, ''), reconnecting
[2021-07-10 15:15:30 +02:00] [101 /Startup ] [Info ] DSharpPlus, version 4.1.0-nightly-00917
[2021-07-10 15:15:31 +02:00] [118 /Gateway ↓ ] [Trace] {"t":null,"s":null,"op":10,"d":{"heartbeat_interval":41250,"_trace":["[\"gateway-prd-main-9zhz\",{\"micros\":0.0}]"]}}
[2021-07-10 15:15:31 +02:00] [105 /WebSocketRec] [Trace] Received HELLO (OP10)
[2021-07-10 15:15:31 +02:00] [109 /Heartbeat ] [Debug] Heartbeat task started
[2021-07-10 15:15:31 +02:00] [119 /Gateway ↑ ] [Trace] {"op":6,"d":{"token":"Bot *****","session_id":"*****","seq":******}}
[2021-07-10 15:15:31 +02:00] [109 /Heartbeat ] [Trace] Sending heartbeat
[2021-07-10 15:15:31 +02:00] [119 /Gateway ↑ ] [Trace] {"op":1,"d":*****}
[2021-07-10 15:15:31 +02:00] [118 /Gateway ↓ ] [Trace] {"t":null,"s":null,"op":11,"d":null}
[2021-07-10 15:15:31 +02:00] [105 /WebSocketRec] [Trace] Received HEARTBEAT_ACK (OP11, 98ms)
[2021-07-10 15:15:31 +02:00] [118 /Gateway ↓ ] [Trace] {"t":"RESUMED","s":404,"op":0,"d":{"_trace":["[\"gateway-prd-main-9zhz\",{\"micros\":1985,\"calls\":[\"discord-sessions-blue-prd-2-87\",{\"micros\":16}]}]"]}}
[2021-07-10 15:15:31 +02:00] [103 /SessionUpdat] [Info ] Session resumed
Some code of my Bot: https://gist.github.com/GuerreroCraft61/9b8a7fddc28cbc19658b1a2460b1aa2d (When this error appear, I'm 99% sure there is no interaction on the server)