After around a day of the server being up, the webrequests stop working without error.
There's no error in any of the logs and my plugin continues to function but from then on, every time it sends a webrequest the callback doesn't get called.
This issue did not occur with the previous Oxide version but I doubt the code for webrequests has changed? Maybe it has.
Here's the code for the webrequest:
Reloading the plugin does not fix the issue - the plugin reloads fine but the same error persists. Reloading other plugins does not fix/change this either.Code:webrequest.EnqueueGet(url, (code, response) => GetCallback(code, response), this, headers, timeout);
As this has happened every day for the last 4 days I started logging when the "GetCallback" function was called and in the main logs I can see it stopped at 5:04 PM
This is what's in the Error Log around that time:
Nothing to do with my plugin but could this be possibly related?Code:[10/01/2016 17:02:17] [Oxide] 5:02 PM [Error] Rust:IO> Steam authentication failed: WebException The request timed out at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0 at B.v.A (A.y , System.String& ) [0x00000] in <filename unknown>:0 [10/01/2016 17:02:55] [Oxide] 5:02 PM [Error] Rust:IO> Steam authentication failed: WebException The request timed out at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0 at B.v.A (A.y , System.String& ) [0x00000] in <filename unknown>:0 [10/01/2016 17:04:27] [Oxide] 5:04 PM [Error] Rust:IO> Steam authentication failed: WebException The request timed out at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0 at B.v.A (A.y , System.String& ) [0x00000] in <filename unknown>:0 [10/01/2016 17:05:07] [Oxide] 5:05 PM [Error] Rust:IO> Steam authentication failed: WebException The request timed out at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename unknown>:0 at B.v.A (A.y , System.String& ) [0x00000] in <filename unknown>:0
Any advice on this is much appreciated!
Thanks.
Web requests stop working after awhile
Discussion in 'Rust Discussion' started by Akhawais, Oct 2, 2016.
-
Wulf Community Admin
Please remove Rust:IO and see if the issue persists. Nothing has changed in Oxide, so them having no issues in the previous and current versions wouldn't be from a change to Oxide.
-
Why would you run a server 24 hours without restarting it?
-
@Wulf It has been successfully calling back without Rust:IO for over 24 hours now - is it safe to assume that Rust:IO is causing the issue and if so, do you know of any fixes for this problem or if you could direct me to where I can ask Rust:IO support.
Thanks -
-
Wulf Community Admin
-
Will do!
Thanks again for all your help!