Jump to content
McKay Development

Recommended Posts

Posted

Hello,

 

I've saw that there's an error when the bot tries to reconnect after a session expires

[ERROR] default - Error: Cannot log onto steamcommunity.com without first being connected to Steam network
    at SteamUser.webLogOn (/var/www/node_modules/steam-user/components/web.js:9:9)
    at SteamCommunity.<anonymous> (/var/www/socket/main.js:1453:29)
    at emitOne (events.js:96:13)
    at SteamCommunity.emit (events.js:188:7)
    at SteamCommunity._notifySessionExpired (/var/www/node_modules/steamcommunity/components/http.js:85:7)
    at /var/www/node_modules/steamcommunity/components/confirmations.js:21:10
    at /var/www/node_modules/steamcommunity/components/confirmations.js:272:4
    at SteamCommunity._checkHttpError (/var/www/node_modules/steamcommunity/components/http.js:90:3)
    at Request._callback (/var/www/node_modules/steamcommunity/components/http.js:50:61)
    at self.callback (/var/www/node_modules/request/request.js:186:22)

And I want to know if there's a callback, so when an error comes in to just 

return;

Can I do like:

client.webLogOn(function(err) {
    if(err) return;
});

Or something like this?

Please help me.

Thanks!

  • 1 month later...
Posted (edited)

callback for webLogOn? How about:
 

client.once(`webSession`, () => {
// Now you should be able to do all your steamcommunity related stuff safely
});
client.webLogOn();
Edited by Royalgamer06

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...