rsyhg7 Posted January 14, 2021 Report Posted January 14, 2021 Hi, I'm going through the steam-user documentation and had some questions with the "error" event emitted. Quote Emitted when an error occurs during logon. Also emitted if we're disconnected and autoRelogin is either disabled, or it's a fatal disconnect. If I leave autoRelogin enabled and my instance receives a fatal disconnect. Should I try to relog myself when it regains connection to steam or will the package automatically attempt relogs without me needing to? Quote
Dr. McKay Posted January 14, 2021 Report Posted January 14, 2021 (edited) If error gets emitted, the SteamUser instance is done doing anything until you manually log it back on. Steam outages are not fatal disconnects, and if autoRelogin is left enabled then error will not get emitted when Steam goes down. Fatal disconnects are things like InvalidPassword, AccountLoginDeniedNeedTwoFactor, RateLimitExceeded, or LoggedInElsewhere. Essentially anything that isn't Fail, NoConnection, ServiceUnavailable, or TryAnotherCM is fatal. Edited January 14, 2021 by Dr. McKay Quote
rsyhg7 Posted January 15, 2021 Author Report Posted January 15, 2021 Ok, Whenever steam goes down for maintenance on Tuesdays and I'm using a proxy to connect to steam I frequently get the error event sent out. Thanks for the confirmation! Quote
Dr. McKay Posted January 15, 2021 Report Posted January 15, 2021 I would guess that's because the proxy isn't able to connect so it throws up its own error. Quote
rsyhg7 Posted January 19, 2021 Author Report Posted January 19, 2021 On 1/14/2021 at 6:17 PM, Dr. McKay said: I would guess that's because the proxy isn't able to connect so it throws up its own error. Yes, I can confirm steam just went down and I was able to confirm this is the cause of the fatal error being thrown. When steam goes down I got a disconnection event of "3 NoConnection" then a few seconds later I got thrown the fatal error of "Proxy connection timed out". Is there a way I can test proxy connection with steam before trying to relog? Quote
Dr. McKay Posted January 20, 2021 Report Posted January 20, 2021 Not really. I guess you should handle the error event, check whether the error message is about your proxy, and if it is then retry a few times and abort if it can't reconnect after a bunch of attempts. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.