Discord WebSocket closed with abnormal close code. Code: 1006Error

[Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1006, reason: An exception has occurred while connecting.

Keeps getting spammed when I load any of the Discord Core, Chat, Presence, and Death. Tried rustcord as an alternative did the same thing. Is the issue with the extension version, my Bot, other plugins? Here's my plugin list

DangerousTreasures.cs
PlayerAdministration.cs
Backpacks.cs
FancyDrop.cs
NoGiveNotices.cs
PlaceholderAPI.cs
BetterLoot.cs
ImageLibrary.cs
Godmode.cs
ColouredChat.cs
BlueprintShare.cs
Quests.cs
GroupLimits.cs
Spectate.cs
ServerArmour.cs
RaidableBases.cs
Trade.cs
Welcomer.cs
BlueprintManager.cs
TimeOfDay.cs
AdminPanel.cs
InfoPanel.cs
Kits.cs
AdminRadar.cs
QuickSmelt.cs
FurnaceSplitter.cs
Vanish.cs
GatherManager.cs
StackSizeController.cs
DiscordCore.cs
DiscordChat.cs
DiscordDeath.cs
DiscordPresence.cs
DeathNotes.cs

I'm also on linux ubuntu server OS 20.04 if that makes a difference

Are there any other error messages besides the one you're seeing? In the configs for Discord Core / Chat / Presence you can enable extension debug logging and it should give more output about what's going on.

Anyway to rate limit the spam when internet drops?  The rust console lost all of the days logging, and showed only the last 2m of rustcord spam that it couldn't connect...  would be nice to rate limit (and yes, logging is elsewhere also, but still....)  

This is repeated endlessly every second or two:
[Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1006, reason: An exception has occurred while connecting.
4/25/2022 4:18:42 PM|Fatal|WebSocket.connect|System.Net.Sockets.SocketException (0x80004005): Could not resolve host 'gateway. discord. gg'
at System.Net.Sockets.TcpClient..ctor (System.String hostname, System.Int32 port) [0x0006d] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 :14] [0/99] --A Rust Server-- [Procedural Map] 89fps 207gc 11h18m14s
at WebSocketSharp.WebSocket.setClientStream () [0x00066] in <2ae3f091decd4989b3c4d466e6eb5985>:0 0b/s in, 0b/s out
at WebSocketSharp.WebSocket.doHandshake () [0x00001] in <2ae3f091decd4989b3c4d466e6eb5985>:0
at WebSocketSharp.WebSocket.connect () [0x0004f] in <2ae3f091decd4989b3c4d466e6eb5985>:0
[Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1006, reason: An exception has occurred while connecting.
4/25/2022 4:18:42 PM|Fatal|WebSocket.connect|System.Net.Sockets.SocketException (0x80004005): Could not resolve host 'gateway. discord. gg'
at System.Net.Sockets.TcpClient..ctor (System.String hostname, System.Int32 port) [0x0006d] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 :14] [0/99] --A Rust Server-- [Procedural Map] 89fps 207gc 11h18m14s
at WebSocketSharp.WebSocket.setClientStream () [0x00066] in <2ae3f091decd4989b3c4d466e6eb5985>:0 0b/s in, 0b/s out
at WebSocketSharp.WebSocket.doHandshake () [0x00001] in <2ae3f091decd4989b3c4d466e6eb5985>:0
at WebSocketSharp.WebSocket.connect () [0x0004f] in <2ae3f091decd4989b3c4d466e6eb5985>:0
[Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1006, reason: An exception has occurred while connecting.

you can set discord extension logging levels in each plugin. mines set to none lol

[Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1006, reason: An exception has occurred while receiving.

I keep getting this spammed in console. Also have had a really bad problem with server lag since this appeared. 

i have two servers running on seperate machines in my home both on the same network running servers and only one server crashes and kicks everyone and i dont understand why or how to go about attempting to fix

so i would imagine its not a network connectivity issue although im not sure exactly what it would be ive read it could be related to rustcord as well but im not certain ive asked and bothered almost everyone with this :(

Hey, This error happens normally and as long as the bot isn't going offline I wouldn't worry about it. If the bot is going offline send over the server log around when the error occurs and we can size what is going on.

2022-05-16 7:32:07 PM|Fatal|WebSocket.<startReceiving>b__170_2|WebSocketSharp.WebSocketException: The header of a frame cannot be read from the stream. at WebSocketSharp.WebSocketFrame.processHeader (System.Byte[] header) [0x0001a] in <2ae3f091decd4989b3c4d466e6eb5985>:0 at WebSocketSharp.WebSocketFrame+<>c__DisplayClass73_0.<readHeaderAsync>b__0 (System.Byte[] bytes) [0x00000] in <2ae3f091decd4989b3c4d466e6eb5985>:0 s, 3 slprs 1kb/s in, 8kb/s out at WebSocketSharp.Ext+<>c__DisplayClass54_0.<ReadBytesAsync>b__0 (System.IAsyncResult ar) [0x0009e] in <2ae3f091decd4989b3c4d466e6eb5985>:0 [Discord Extension] [Warning]: Discord WebSocket closed with abnormal close code. Code: 1006, reason: An exception has occurred while receiving. [Discord Extension] [Info]: Discord socket opened! [Discord Extension] [Info]: Your bot was found in 2 Guilds!

 

and directly after it will usually kick everyone i have a few other error codes i can send if you would like, as they all seem to be minorly different but relatively the same details are always there, sometimes a few extras added but seems to be all stemming from one issue im not able to properly diagnose alone



Merged post

im gonna be honest ive had this project going for about 2 months had a crazy lucky start got like 400USD in donations so far to help growth, and its been going well aside from when my lack of experience with coding severly holds me back, i would love to eventually be able to work with developers like yourself and have someone there to have my back when it comes to technical issues and allow me to put in my time where i can be best utilized because id be lying if i said this was my strong suit, ive managed to get it all working i would say with intermediate understanding and through AN EXTREME amount of srtbull videos and help from the community, but i get scared thinking about NOT having someone like you on my side, what would something like this cost me? ive seen like 4 other communites that have map devs and the likes to help with smoothness on their servers and what they offer their communites.

Merged post

just by the long list of plugins that you have, i would imagine you are very busy, and i understand how valuable time is, and i thank you for yours and look forward to hearing from you.

Merged post

^ ^ realized i didnt tag you my bad