Good afternoon.
Tonight, I came across a heap of errors when adding Discord status to a clean installed server. The error log is as follows.
DiscordStatus was compiled successfully in 1848ms
DiscordStatus was compiled successfully in 1848ms
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Unloaded plugin Discord Status v2.0.4 by Tricky
Unloaded plugin Discord Status v2.0.4 by Tricky
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Fallback handler could not load library E:/UserFiles/RadboudV/26309/RustDedicated_Data/Mono/data-00000078F06E1EB0.dll
Loaded plugin Discord Status v2.0.4 by Tricky
Loaded plugin Discord Status v2.0.4 by Tricky
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Discord socket opened!
[Discord Extension] Discord socket opened!
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Your bot was found in 1 Guilds!
[Discord Extension] Your bot was found in 1 Guilds!
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
3/21/2020 2:45:15 AM|Error|WebSocket.messagec|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) [0x00f5e] in <a141f1996e934ec597a4fcdd8f3a7ede>:0
at WebSocketSharp.Ext.Emit[TEventArgs] (System.EventHandler`1[TEventArgs] eventHandler, System.Object sender, TEventArgs e) [0x00009] in <7126fb4f5c5b40029458a4f975f98d13>:0
at WebSocketSharp.WebSocket.messagec (WebSocketSharp.MessageEventArgs e) [0x00003] in <7126fb4f5c5b40029458a4f975f98d13>:0
[Discord Extension] An error has occured: Response: An exception has occurred during an OnMessage event.
[Discord Extension] An error has occured: Response: An exception has occurred during an OnMessage event.
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Attempting to reconnect to Discord...
[Discord Extension] Attempting to reconnect to Discord...
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Discord connection closed uncleanly: code 1006, Reason:
[Discord Extension] Discord connection closed uncleanly: code 1006, Reason:
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Attempting to reconnect to Discord...
[Discord Extension] Attempting to reconnect to Discord...
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
3/21/2020 2:45:15 AM|Fatal|WebSocket.<startReceiving>b__170_2|System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'SslStream'.
at System.Net.Security.SslStream.CheckDisposed () [0x00008] in <ae22a4e8f83c41d69684ae7f557133d9>:0
at System.Net.Security.SslStream.get_Impl () [0x00000] in <ae22a4e8f83c41d69684ae7f557133d9>:0
at System.Net.Security.SslStream.EndRead (System.IAsyncResult asyncResult) [0x00000] in <ae22a4e8f83c41d69684ae7f557133d9>:0
at WebSocketSharp.Ext+<>c__DisplayClass55_1.<ReadBytesAsync>b__1 (System.IAsyncResult ar) [0x00002] in <7126fb4f5c5b40029458a4f975f98d13>:0
[Discord Extension] Discord socket opened!
[Discord Extension] Discord socket opened!
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Attempting resume opcode...
[Discord Extension] Attempting resume opcode...
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Discord socket opened!
[Discord Extension] Discord socket opened!
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Warning: tried to create a heartbeat when one is already registered.
[Discord Extension] Warning: tried to create a heartbeat when one is already registered.
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[Discord Extension] Attempting resume opcode...
[Discord Extension] Attempting resume opcode...
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Failed to run a 5.00 timer in 'DiscordStatus v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Ext.Discord.DiscordClient.UpdateStatus (Oxide.Ext.Discord.DiscordObjects.Presence presence) [0x0001c] in <a141f1996e934ec597a4fcdd8f3a7ede>:0
at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in <4c9b9eac076449ffb703b7c77b74c3b1>:0
at Oxide.Plugins.DiscordStatus.<OnServerInitialized>m__0 () [0x00000] in <4c9b9eac076449ffb703b7c77b74c3b1>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ac41dd3599754d448b8c218b34645820>:0
Failed to run a 5.00 timer in 'DiscordStatus v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Ext.Discord.DiscordClient.UpdateStatus (Oxide.Ext.Discord.DiscordObjects.Presence presence) [0x0001c] in <a141f1996e934ec597a4fcdd8f3a7ede>:0
at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in <4c9b9eac076449ffb703b7c77b74c3b1>:0
at Oxide.Plugins.DiscordStatus.<OnServerInitialized>m__0 () [0x00000] in <4c9b9eac076449ffb703b7c77b74c3b1>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ac41dd3599754d448b8c218b34645820>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
When the error happened, the discord bot was active but was not able to fetch its data from the server to the status bar ( world map seed and such ). I think it because the "game" status cannot be chosen because when I edited it from that to "playing", everything worked.