An error has occurred in sending data

Hi everyone,
usally the plugin works just fine for hours but sometimes the error: [Discord Ext] An error has occured: Response: An error has occurred in sending data. is spamming the console. When i unload DiscordStatus this error disapears so im pretty confident this error is related to the Discord Status plugin or even to the Discord Plugin.

Usally after automaticly reloading the plugin this error disaprears for a while, but it comes back.
Does anyone know how to avoid this kind of error?

My setup: Discord Plugin, Rustcord Plugin, DiscordStatus Plugin.
I have multiple servers running on my machine. But of course every server got his own Discord Bot-ID.

[DiscordExt] Invalid Session ID opcode recieved!
Unloaded plugin Discord Status v2.0.3 by Tricky
Loaded plugin Discord Status v2.0.3 by Tricky
[Discord Ext] An error has occured: Response: An error has occurred in sending data.
[Discord Ext] An error has occured: Response: An error has occurred in sending data.
[Discord Ext] An error has occured: Response: An error has occurred in sending data.
[Discord Ext] An error has occured: Response: An error has occurred in sending data....



Cheers Rage -

 
I am having the same issue. I thought at first it was the Discord Extension. It is not. I have also confirmed that this plugin is causing this issue and have linked it to the update interval. As it is trying to do it's update something is going wrong.

Merged post

I think I have found the issue. I have noticed that the error message doesn't appear until Rustcord reloads. Once Rustcord reloads error messages begin and cease once DiscordStatus reloads. I have turned the autoreload feature to false in Rustcord and haven't had an error message appear since.

So, there is some correlation between Rustcord reloading and 'resetting' the bot and DiscordStatus being unable to update the bot because of this. Purely a hunch. 
The same is happening to our servers after updating the discord status plugin. In our case it freezes the server and it will crash/appear offline. 

Try paste into your plugin:

private void DiscordSocket_WebSocketErrored(Exception exception, string message) 
{ 
    Discord.CreateClient(this, config.BotToken);
}