Ben 0 Posted January 21 Report Share Posted January 21 Hi i got this error: throw new Error("Cannot log onto steamcommunity.com without first being connected to Steam network"); it caused my bot to crash. But i didnt came on startup it came after the bot was already running for multiple minutes, so it was already logged in. Maybe it tried to log in again since the session was expired or some thing like that. I hope you can help me Quote Link to post Share on other sites
Dr. McKay 360 Posted January 22 Report Share Posted January 22 Are you calling webLogOn() anywhere in your own code? Quote Link to post Share on other sites
Ben 0 Posted January 24 Author Report Share Posted January 24 Yeah, when the sessions expires. Quote Link to post Share on other sites
Dr. McKay 360 Posted January 25 Report Share Posted January 25 You're probably not checking whether your client is still connected to Steam. In that case, whenever Steam goes down (or you otherwise lose connection), your web session will expire, triggering sessionExpired, which will make your code call webLogOn, which will fail with the given error because your client is no longer connected. You should check whether client.steamID is not null to make sure you're still connected. Quote Link to post Share on other sites
Ben 0 Posted January 25 Author Report Share Posted January 25 Ah okay thank you Quote Link to post Share on other sites
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.