neverhood Posted July 27, 2019 Report Posted July 27, 2019 Hello, I'm using only 'node-steam-user' library and sometimes (randomly, not only during Tuesday maintenance) my script is crashing when I'm doing 'client.webLogOn();' (I'm doing it in intervals to keep my session alive - just in case every 30 minutes) sometimes I'm getting this error (very rare case): /node_modules/steam-user/components/web.js:10 throw new Error("Cannot log onto steamcommunity.com without first being connected to Steam network"); is there any method that instead of crashing app I can try to login account again with 'client.logOn'? because I don't want to check my VPS if script got crashed or no (I want to run it constantly without worring that something crashed there) something with try, catch method? Quote
Dr. McKay Posted July 27, 2019 Report Posted July 27, 2019 Before calling webLogOn, you need to check if client.steamID is set. If it isn't, then you aren't connected and you'll need to reconnect first. 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.