Jump to content


Photo

Cannot log onto steamcommunity.com without first being connected to Steam network

node.js node-steam-user

Best Answer Dr. McKay , 27 July 2019 - 05:12 PM

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.

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 neverhood

neverhood

    Advanced Member

  • Member
  • PipPipPip
  • 56 posts

Posted 27 July 2019 - 07:13 AM

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?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,212 posts

Posted 27 July 2019 - 05:12 PM   Best Answer

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.







Also tagged with one or more of these keywords: node.js, node-steam-user

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users