// regular function, heartbeats get acknowledged in expected time [09:30:41.157] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [09:30:41.276] [INFO] [event/DEBUG] [WS => Shard 0] Heartbeat acknowledged, latency of 118ms. [09:31:22.419] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [09:31:22.540] [INFO] [event/DEBUG] [WS => Shard 0] Heartbeat acknowledged, latency of 120ms. [09:32:03.673] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [09:32:03.793] [INFO] [event/DEBUG] [WS => Shard 0] Heartbeat acknowledged, latency of 120ms. [09:32:44.932] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [09:32:45.080] [INFO] [event/DEBUG] [WS => Shard 0] Heartbeat acknowledged, latency of 147ms. // heartbeat starts to heavily lag, this is due to the network having a large latency around this time [09:33:26.193] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [09:33:26.992] [INFO] [event/DEBUG] [WS => Shard 0] Heartbeat acknowledged, latency of 798ms. [09:34:07.453] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [09:34:10.942] [INFO] [event/DEBUG] [WS => Shard 0] Heartbeat acknowledged, latency of 3489ms. [09:34:48.708] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. [09:34:49.624] [INFO] [event/DEBUG] [WS => Shard 0] Heartbeat acknowledged, latency of 916ms. [09:35:29.972] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Sending a heartbeat. // latency becomes large enough to time out the WS [09:36:11.223] [INFO] [event/DEBUG] [WS => Shard 0] [HeartbeatTimer] Didn't receive a heartbeat ack last time, assuming zombie connection. Destroying and reconnecting. [09:36:11.223] [INFO] [event/DEBUG] Status : 0 [09:36:11.223] [INFO] [event/DEBUG] Sequence : 119 [09:36:11.223] [INFO] [event/DEBUG] Connection State: OPEN [09:36:11.224] [INFO] [event/DEBUG] [WS => Shard 0] [DESTROY] [09:36:11.224] [INFO] [event/DEBUG] Close Code : 4009 [09:36:11.224] [INFO] [event/DEBUG] Reset : true [09:36:11.224] [INFO] [event/DEBUG] Emit DESTROYED: true [09:36:11.225] [INFO] [event/DEBUG] [WS => Shard 0] Clearing the heartbeat interval. [09:36:11.226] [INFO] [event/DEBUG] [WS => Shard 0] [WebSocket] Destroy: Attempting to close the WebSocket. | WS State: OPEN [09:36:11.226] [INFO] [event/DEBUG] [WS => Shard 0] [WebSocket] Close: Tried closing. | WS State: CLOSING [09:36:11.226] [INFO] [event/DEBUG] [WS => Shard 0] [WebSocket] Adding a WebSocket close timeout to ensure a correct WS reconnect. [09:36:11.226] [INFO] [event/DEBUG] Timeout: 5000ms [09:36:16.227] [INFO] [event/DEBUG] [WS => Shard 0] [WebSocket] Clearing the close timeout. [09:36:16.227] [INFO] [event/DEBUG] [WS => Shard 0] [WebSocket] Close Emitted: false // close timed out, discord.js kills the connection [09:36:16.229] [INFO] [event/DEBUG] [WS => Shard 0] [WebSocket] did not close properly, assuming a zombie connection. [09:36:16.229] [INFO] [event/DEBUG] Emitting close and reconnecting again. [09:36:16.229] [INFO] [event/DEBUG] [WS => Shard 0] [CLOSE] [09:36:16.229] [INFO] [event/DEBUG] Event Code: 1011 [09:36:16.229] [INFO] [event/DEBUG] Clean : false [09:36:16.229] [INFO] [event/DEBUG] Reason : INTERNAL_ERROR [09:36:16.230] [WARN] [event/SHARD_RECONNECTING] Shard 0 is reconnecting [09:36:16.230] [INFO] [event/DEBUG] [WS => Shard 0] [CONNECT] [09:36:16.230] [INFO] [event/DEBUG] Gateway : wss://gateway.discord.gg/ [09:36:16.230] [INFO] [event/DEBUG] Version : 10 [09:36:16.230] [INFO] [event/DEBUG] Encoding : json [09:36:16.230] [INFO] [event/DEBUG] Compression: none [09:36:16.231] [INFO] [event/DEBUG] [WS => Shard 0] Setting a HELLO timeout for 20s. // HELLO *barely* gets returned back after 18/20 seconds [09:36:34.009] [INFO] [event/DEBUG] [WS => Shard 0] [CONNECTED] Took 17778ms [09:36:34.009] [INFO] [event/DEBUG] [WS => Shard 0] Clearing the HELLO timeout. [09:36:34.011] [INFO] [event/DEBUG] [WS => Shard 0] Setting a heartbeat interval for 41250ms. [09:36:34.011] [INFO] [event/DEBUG] [WS => Shard 0] [IDENTIFY] Shard 0/1 with intents: 37377 [09:36:38.368] [INFO] [event/DEBUG] [WS => Shard 0] [READY] Session [CENCORED BCUZ IDK IF CONFIDENTIAL (session #1)] | Resume url wss://gateway-us-east1-b.discord.gg. [09:36:38.368] [INFO] [event/DEBUG] [WS => Shard 0] [ReadyHeartbeat] Sending a heartbeat. // closes for some reason unbeknown to me, probably some timeout that didn't get logged [09:36:41.243] [INFO] [event/DEBUG] [WS => Shard 0] Clearing the heartbeat interval. [09:36:41.243] [INFO] [event/DEBUG] [WS => Shard 0] [CLOSE] [09:36:41.243] [INFO] [event/DEBUG] Event Code: 1006 [09:36:41.243] [INFO] [event/DEBUG] Clean : false [09:36:41.243] [INFO] [event/DEBUG] Reason : [09:36:41.245] [WARN] [event/SHARD_RECONNECTING] Shard 0 is reconnecting [09:36:41.245] [INFO] [event/DEBUG] [WS => Shard 0] Session id is present, attempting an immediate reconnect... [09:36:41.245] [INFO] [event/DEBUG] [WS => Shard 0] An open connection was found, attempting an immediate identify. [09:36:41.246] [INFO] [event/DEBUG] [WS => Shard 0] [RESUME] Session [CENCORED BCUZ IDK IF CONFIDENTIAL (session #1)], sequence 1 // RESUME passed, but following guilds were not received due to network latency [09:36:53.380] [INFO] [event/DEBUG] [WS => Shard 0] Shard did not receive any more guild packets in 15000 ms. [09:36:53.380] [INFO] [event/DEBUG] Unavailable guild count: 7 [09:36:53.381] [INFO] [event/SHARD_READY] Shard 0 ready, missing: 566925178190299136, 669209935661498379, 735423145489596477, 797134895608365096, 797853881480511519, 923326828997935126, 1002353084061720686 // bot was offline until manual restart, it was still able to send messages via TextChannel#send(), but didn't receive any sort of gateway events // [14:34] A user tried to execute a command in DMs, met with "Application did not respond", indicating this doesn't just affect the unavailable guilds // [14:38] I restarted the bot manually, restoring full functionality