I've recently rewritten an old project from scratch using the latest module versions, I'm encountering a Problem where my bot works fine, however after running for a while (days / weeks) it tends to throw Not Logged In errors and does not recover from this situation.
I have had this problem in the old code and implemented a duct tape solution there by listening to `manager._community.on('debug')` and calling `steamUser.webLogOn()` if the log contains "Not Logged In", however obviously this is very hacky and probably not intended.
My Setup is as follows:
TradeofferManager is passed my own instances of SteamUser and SteamCommunity
Session is lost / invalid after running for a while
in node-steamcommunity
Posted · Edited by Kinsi55
I've recently rewritten an old project from scratch using the latest module versions, I'm encountering a Problem where my bot works fine, however after running for a while (days / weeks) it tends to throw Not Logged In errors and does not recover from this situation.
I have had this problem in the old code and implemented a duct tape solution there by listening to `manager._community.on('debug')` and calling `steamUser.webLogOn()` if the log contains "Not Logged In", however obviously this is very hacky and probably not intended.
My Setup is as follows:
Is there something else that I should listen to besides "webSession" to be notified of new cookies?
My Module Versions are:
Thanks
Edit: This probably should've been categorized under steam-user sorry, my bad.