neverhood Posted January 8, 2020 Report Share Posted January 8, 2020 Hello, I'm trying to keep my session alive with this code with interval 1 hour if (client.steamID) { client.webLogOn(); } else { client.logOn(account); } but in very rare case I'm getting crash (1 timer per 2-3 weeks, 24/7 running): /root/project/node_modules/steam-user/components/messages.js:472 if (steamID && sessionID && (sessionID != this._sessionID || steamID.toString() != this.steamID.toString())) { ^ TypeError: Cannot read property 'toString' of null at SteamUser._handleNetMessage (/root/project/node_modules/steam-user/components/messages.js:472:98) at SteamUser.processMulti (/root/project/node_modules/steam-user/components/messages.js:570:9) at Gunzip.cb (/root/project/node_modules/steam-user/components/messages.js:561:17) at Gunzip.zlibBufferOnEnd (zlib.js:150:10) at Gunzip.emit (events.js:317:22) at endReadableNT (_stream_readable.js:1215:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) newest library, newest nodejs, how can I handle it? Quote Link to comment Share on other sites More sharing options...
vrtgn Posted January 10, 2020 Report Share Posted January 10, 2020 community.on('sessionExpired', function(err) { client.webLogOn(); //relogin to Steam or refresh tradeoffer-manager cookies }) Quote Link to comment Share on other sites More sharing options...
neverhood Posted January 11, 2020 Author Report Share Posted January 11, 2020 I dont even use steamcommunity library so I have no idea what you mean lol Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 11, 2020 Report Share Posted January 11, 2020 That looks like a bug in the module that's triggered by some weird, rare message from Steam. I'll fix it in the next update. https://github.com/DoctorMcKay/node-steam-user/issues/283 Quote Link to comment Share on other sites More sharing options...
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.