Bot goes offline / NullReferenceException at UpdateStatusError
{
"EnableInGameTime-Timer": false,
"EnableRealTime-Timer": false,
"EnableTimerOnce": false,
"EnableTimerRepeat": true,
"InGameTime-Timer": {},
"RealTime-Timer": {},
"TimerOnce": {},
"TimerRepeat": {
"o.reload DiscordAuth": 600,
"o.reload DiscordStatus": 620
}
} I'm running this version for approx 7 hours without issues. stats are up, reloads nice without issues. still wonder why it was removed on "request" while rust cord has the same.
knoepert
I'm running this version for approx 7 hours without issues. stats are up, reloads nice without issues. still wonder why it was removed on "request" while rust cord has the same.
No plugin should be reloading themselves. The isuse is something that the Discord extension needs to have fixed, but the maintainers have yet to do so. Plugins reloading themselves just causes unnecessary resource usage and potential issues.
Wulf
No plugin should be reloading themselves. The isuse is something that the Discord extension needs to have fixed, but the maintainers have yet to do so. Plugins reloading themselves just causes unnecessary resource usage and potential issues.
what kind of issues if I may ask? Could you pinpoint certain aspects and examples?
(19:29:01) | [Discord Extension] Discord socket opened!
(19:29:02) | [Discord Extension] Your bot was found in 1 Guilds!
(19:29:02) | Rustcord has replaced the 'report' chat command previously registered by Rustcord
(19:29:02) | Rustcord has replaced the 'bug' chat command previously registered by Rustcord
(19:31:54) | [Discord Extension] Discord connection closed uncleanly: code 1006, Reason: An exception has occurred while receiving.
(19:31:54) | [Discord Extension] Attempting to reconnect to Discord...
(19:31:55) | [Discord Extension] Discord socket opened!
(19:31:55) | [Discord Extension] Attempting resume opcode...
(19:31:55) | [Discord Extension] Session resumed!
(19:34:56) | Unloaded plugin Discord Status v2.0.3 by Tricky
(19:34:56) | Loaded plugin Discord Status v2.0.3 by Tricky
(19:34:57) | [Discord Extension] Discord socket opened!
(19:34:57) | [Discord Extension] Your bot was found in 1 Guilds!normally, when this error happens, the bot dies with a thick NRE. But, when using the 2.0.3 version, nothing is going on. No lag spikes, no weird errors or issues.
Console/log spam, dependencies needing to be reloaded, server thread being clogged up while all of this happens constantly, etc.knoepert
what kind of issues if I may ask? Could you pinpoint certain aspects and examples?
Merged post
could this be a possible issue depending on the bot its usage?
------
Devices using a proxy might show limited or no internet connection status
Devices using a manual or auto-configured proxy, especially with a virtual private network (VPN), might show limited or no internet connection status in the Network Connectivity Status Indicator (NCSI) in the notification area. This might happen when connected or disconnected to a VPN or after changing the state between the two. Devices with this issue might also have issues reaching the internet using applications that use WinHTTP or WinInet. Examples of apps that might be affected on devices in this state are as follows but not limited to Microsoft Teams, Microsoft Office, Office365, Outlook, Internet Explorer 11, and some version of Microsoft Edge.
Affected platforms:
Client: Windows 10, version 1909; Windows 10, version 1903; Windows 10, version 1809; Windows 10 Enterprise LTSC 2019; Windows 10, version 1803; Windows 10, version 1709
Server: Windows Server, version 1909; Windows Server, version 1903; Windows Server, version 1809; Windows Server 2019; Windows Server, version 1803; Windows Server, version 1709
The reason why I think this is that the bot basically keeps crashing is that it can't connect properly. Users with more than 1 Gameserver with similar IP but different ports could be affected.
Just roughly and hard thinking of course, yet again I don't know sack about modding ofc ( some people say it, not mine words. )
Is there a temp fix (how to i make the plugin autoload every 30min)
SpikyZAIs there a temp fix (how to i make the plugin autoload every 30min)
knoepert recommendation of going back to version V2.0.3 worked for me.
DuckTalesknoepert recommendation of going back to version V2.0.3 worked for me.
As of today, the bot still didn't die, there was only 1 hiccup where it could not be reloaded but that was due to a discord related issue. This was however automatically resolved as the plugin still does its reloading. Way better than reloading it 20 times a day manually.
So, yes. its an idea to go back, but as Wulff said, it could get nasty.. even tho i still haven't seen any issues yet. Still use at own risk ofc.
knoepert
As of today, the bot still didn't die, there was only 1 hiccup where it could not be reloaded but that was due to a discord related issue. This was however automatically resolved as the plugin still does its reloading. Way better than reloading it 20 times a day manually.
So, yes. its an idea to go back, but as Wulff said, it could get nasty.. even tho i still haven't seen any issues yet. Still use at own risk ofc.
Understood. I've also rolled back DiscordAuth, where i was getting similiar issues from the auto reload being removed.
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 <618cbb3cd1f24a338ef71fa504209e7a>:0
at Oxide.Plugins.DiscordStatus.UpdateStatus () [0x0005f] in <2688a15389244ccaaf252508c836b983>:0
at Oxide.Plugins.DiscordStatus.<OnServerInitialized>m__0 () [0x00000] in <2688a15389244ccaaf252508c836b983>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <ac41dd3599754d448b8c218b34645820>:0