Discord connection closed uncleanly: code 1006Error
This just means connection with discord is lost and it is reconnecting. It happens to any bot, not just umod Discord bots.

But if you are using Rustcord, this usually means hooks from discord to server don't activate anymore. Seems to be a bug with the extension.
... hi, your PLUGIN "RustCord" spams always the Rust - ServerConsole with this Error:



can u fixed it please ?

Have a nice Day :)
(10:26:50) | [Discord Extension] Discord socket opened!
(10:26:50) | [Discord Extension] Your bot was found in 1 Guilds!
(10:26:50) | [Discord Extension] An error has occured: Response: An exception has occurred during an OnMessage event.
(10:26:50) | [Discord Extension] Attempting to reconnect to Discord...
(10:26:50) | [Discord Extension] Discord connection closed uncleanly: code 1006, Reason:
(10:26:50) | [Discord Extension] Attempting to reconnect to Discord...
(10:26:50) | [Discord Rewards] ERROR: The "enter_role_here" role couldn't be found (try role ID instead)! Expect further errors!
(10:26:51) | [Discord Extension] Discord socket opened!
(10:26:51) | [Discord Extension] Attempting resume opcode...
(10:26:51) | [Discord Extension] Discord socket opened!
(10:26:51) | [Discord Extension] Warning: tried to create a heartbeat when one is already registered.
(10:26:51) | [Discord Extension] Attempting resume opcode...

It this a cause to concern?

{
  "Command": "verify",
  "Discord bot key (Look at documentation for how to get this)": "***",
  "Verification Role (role given when verified)": "enter_role_here",
  "Commands to execute when player is verified (use {0} for the player's steamid)": [
    "inventory.giveto {0} stones 1000"
  ],
  "Amount of characters in the code": 6,
  "Erase all verification data on wipe (new map save)?": false,
  "Characters used in the verification code": "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"
}

Above is my config settings. Groups is empty on purpose. :)

Hey, Im getting an error with Discord DLL and plugin DiscordAuth, I get StreamSSL error. Anyone can help me?
https://prnt.sc/uconke
I've got a few plugins (DiscordTeams and DiscordAuth) that stop working after a while, until I reload DiscordCore -- it seems like the plugins all stop working when the below log entries happen:

10/06 20:55:46 | [Discord Extension] Reconnect has been called (opcode 7)! Reconnecting...
10/06 20:55:46 | [Discord Extension] Discord connection closed uncleanly: code 1006, Reason:
10/06 20:55:46 | [Discord Extension] Attempting to reconnect to Discord...
10/06 20:55:47 | [Discord Extension] Discord socket opened!
10/06 20:55:47 | [Discord Extension] Attempting resume opcode...
10/06 20:55:47 | [Discord Extension] Discord socket opened!
10/06 20:55:47 | [Discord Extension] Warning: tried to create a heartbeat when one is already registered.
10/06 20:55:47 | [Discord Extension] Attempting resume opcode...
10/06 20:55:47 | [Discord Extension] Session resumed!

Is there any more information I can provide to help diagnose the problem? Again, as soon as I reload DiscordCore, the problem goes away, but obviously, DiscordCore relies on the extension, which is what seems to be having an issue here.

Or, am i missing something?

Thanks for some good programming!

Merged post

Sorry, wasnt sure if this was the same(since i have a different opcode) Thanks for merging!

what is the problem?
That error is from the Discord Extension, not DiscordCore.
MJSU
That error is from the Discord Extension, not DiscordCore.

what should I do?

I think what MJSU is suggesting, is that you should post in the DiscordExtension forum, not the DiscordCore page.
xeryax
I think what MJSU is suggesting, is that you should post in the DiscordExtension forum, not the DiscordCore page.

It was merged, which is why it is already there.

[Discord Extension] Reconnect has been called (opcode 7)! Reconnecting...
[Discord Extension] Discord connection closed uncleanly: code 1006, Reason:
[Discord Extension] Attempting to reconnect to Discord...
06/11/2020 11:38:48|Fatal|WebSocket.<startReceiving>b__170_2|System.ObjectDispos
edException: Cannot access a disposed object.
Object name: 'SslStream'.ES-EN-BR] [Procedural Map]7s
at System.Net.Security.SslStream.CheckDisposed () [0
x00008] in <14e3453b740b4bd690e8d4e5a013a715>:0
at System.Net.Security.SslStream.get_Impl () [0x0000
0] in <14e3453b740b4bd690e8d4e5a013a715>:0
at System.Net.Security.SslStream.EndRead (System.IAs
yncResult asyncResult) [0x00000] in <14e3453b740b4bd690e8d4e5a013a715>:0
at WebSocketSharp.Ext+<>c__DisplayClass54_0.<ReadByt
esAsync>b__0 (System.IAsyncResult ar) [0x00002] in <45c13f2b01574d8b82248736e420
[Discord Extension] Discord socket opened!
[Discord Extension] Attempting resume opcode...
[Discord Extension] Discord socket opened!
[Discord Extension] Warning: tried to create a heartbeat when one is already reg
istered.
[Discord Extension] Attempting resume opcode...
[Discord Extension] Session resumed!
(08:01:02) | [Discord Extension] [Warning]: Discord connection closed uncleanly: code 1006, Reason:
(08:01:02) | [Discord Extension] [Warning]: Attempting to reconnect to Discord...
(08:01:02) | [Discord Extension] [Warning]: Discord socket opened!

My Rcon gets spammed with this message, but only on this server out of all my 6 servers. 

What can it be

and At the end of all of it I get this 

An error has occured: Response: An exception has occurred during the OnClose event.
System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Ext.Discord.DiscordClient.ConnectToWebSocket () [0x0001e] in <bbf4723beae74ebda622b6b1bc2f1926>:0 
  at Oxide.Ext.Discord.WebSockets.SocketListner.SocketClosed (System.Object sender, WebSocketSharp.CloseEventArgs e) [0x001d8] in <bbf4723beae74ebda622b6b1bc2f1926>:0 
  at WebSocketSharp.Ext.Emit[TEventArgs] (System.EventHandler`1[TEventArgs] eventHandler, System.Object sender, TEventArgs e) [0x00009] in <45c13f2b01574d8b82248736e42013a4>:0 
  at WebSocketSharp.WebSocket.close (WebSocketSharp.CloseEventArgs e, System.Boolean send, System.Boolean receive, System.Boolean received) [0x000f1] in <45c13f2b01574d8b82248736e42013a4>:0

 

One way to get it to stop would be to reload whichever plugin is causing it. That will only stop the spam and not the issue overall. Is there any way you could provide the log file specified in the startup script with -logfile?

Let me try to find this for you !

Which Directory would this be in ? Because I have multiple log locations 

Merged post

I had to change some of my Discord bot tokens, but I have fixed that, You think that could of been the issue ?

Merged post

Here is another message that I got 

12:00 AM [Warning] [Discord Extension] [Warning]: An error has occured: Response: An exception has occurred during an OnMessage event.
System.ArgumentNullException: Value cannot be null.
Parameter name: source
  at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0000d] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at Oxide.Ext.Discord.WebSockets.SocketListner.SocketMessage (System.Object sender, WebSocketSharp.MessageEventArgs e) [0x00f16] in <bbf4723beae74ebda622b6b1bc2f1926>:0 
  at WebSocketSharp.Ext.Emit[TEventArgs] (System.EventHandler`1[TEventArgs] eventHandler, System.Object sender, TEventArgs e) [0x00009] in <45c13f2b01574d8b82248736e42013a4>:0 
  at WebSocketSharp.WebSocket.messagec (WebSocketSharp.MessageEventArgs e) [0x00003] in <45c13f2b01574d8b82248736e42013a4>:0