Jump to content


Photo

not confirm trade after running a while

node.js node-steamcommunity

  • Please log in to reply
13 replies to this topic

#1 speicher

speicher

    Member

  • Member
  • PipPip
  • 13 posts

Posted 03 April 2016 - 02:17 PM

i have the problem, that my bots will stop confirming trades (mobile auth) when they are running for a while. it is completed random, the bots can work for hours sometimes even days without problems and then they will stop to confirming the mobile auth trades. when i shutdown the bots and start them again, then they will confirm the open mobile auth confirmations. so it looks like that the steam servers are not answering or answering with an error or something? is there an debug function, so that i can see an error message why they stop confirming the trades? thank you!



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 03 April 2016 - 04:11 PM

You need to re-logon every so often to refresh your session. Using steam-user all you need to do is call webLogOn() periodically (or when stuff starts to break).



#3 speicher

speicher

    Member

  • Member
  • PipPip
  • 13 posts

Posted 03 April 2016 - 04:50 PM

i have updated your plugins to the newest versions few minutes ago, because i have seen you have added a new event called "sessionExpired".  so you mean like this?
community.on('sessionExpired', function(err) {
	if (err) {
		console.log('sessionExpired: '+err);
	}
	community.stopConfirmationChecker();
	client.webLogOn();
});


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 03 April 2016 - 05:10 PM

Yeah, that should work.



#5 speicher

speicher

    Member

  • Member
  • PipPip
  • 13 posts

Posted 03 April 2016 - 05:22 PM

i am using your plugins in 12 bots and i really appreciate your work and support. so i have send you a paypal donation as "friend" (should be without paypal fees). keep up the good work! ;)

#6 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 03 April 2016 - 06:15 PM

i am using your plugins in 12 bots and i really appreciate your work and support. so i have send you a paypal donation as "friend" (should be without paypal fees). keep up the good work! ;)

 

Thanks! :)



#7 speicher

speicher

    Member

  • Member
  • PipPip
  • 13 posts

Posted 14 June 2016 - 07:11 PM

i need to re-open this thread. the fix is not working anymore. it was working for about 2 months flawless. today, i have updated nodejs and all plugins to the newest versions and my bots are crashing frequently with this fatal error below.   log:
Logged into Steam
We have 19 friends.
Got web session
Got API key
sessionExpired: Error: Not Logged In
/home/nodejs/node/node_modules/steam-user/components/web.js:9
		throw new Error("Cannot log onto steamcommunity.com without first being connected to Steam network");
		^

Error: Cannot log onto steamcommunity.com without first being connected to Steam network
    at SteamUser.webLogOn (/home/nodejs/node/node_modules/steam-user/components/web.js:9:9)
    at SteamCommunity.<anonymous> (/home/nodejs/node/csgopoints.js:95:9)
    at emitOne (events.js:77:13)
    at SteamCommunity.emit (events.js:169:7)
    at SteamCommunity._notifySessionExpired (/home/nodejs/node/node_modules/steamcommunity/components/http.js:79:7)
    at /home/nodejs/node/node_modules/steamcommunity/components/confirmations.js:21:10
    at /home/nodejs/node/node_modules/steamcommunity/components/confirmations.js:162:4
    at SteamCommunity._checkHttpError (/home/nodejs/node/node_modules/steamcommunity/components/http.js:84:3)
    at Request._callback (/home/nodejs/node/node_modules/steamcommunity/components/http.js:50:61)
    at self.callback (/home/nodejs/node/node_modules/steamcommunity/node_modules/request/request.js:200:22)
code:
community.on('sessionExpired', function(err) {
	if (err) {
		console.log('sessionExpired: '+err);
	}
	
	community.stopConfirmationChecker();
	client.webLogOn();
});


#8 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 14 June 2016 - 08:46 PM

 

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

 

You aren't connected to Steam. Today is Tuesday. Steam goes down every Tuesday.



#9 speicher

speicher

    Member

  • Member
  • PipPip
  • 13 posts

Posted 14 June 2016 - 09:08 PM

yes, but your plugin (steam-user // downloaded 04 april) was making an auto reconnect on default for almost 2 months without any problems. since i have installed today the newest versions from steam-user, it crashed already 2 times. it should auto-reconnect instead of crashing with an fatal error. in worst case the bots would be offline for hours or even days, until i see it. what should i do now? its enough when i add to the "sessionExpired" event an client.logOn(); or how can fix this problem? thanks

#10 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 14 June 2016 - 11:36 PM

It is reconnecting. It just hasn't yet when you try to log onto the website, which doesn't work if it isn't connected.



#11 speicher

speicher

    Member

  • Member
  • PipPip
  • 13 posts

Posted 17 June 2016 - 03:29 PM

yes, but the bot is running for hours. making hundred trades. randomly the sessionExpired is fired and then the the bot is crashing with "Cannot log onto steamcommunity.com without first being connected to Steam network". so i have added additionally client.logOn(); and guess what happens now? bot crash with "Already logged on, cannot log on again".

#12 speicher

speicher

    Member

  • Member
  • PipPip
  • 13 posts

Posted 17 June 2016 - 03:38 PM

ok, that should work based on your wiki.
community.on('sessionExpired', function(err) {
	if (err) {
		console.log('sessionExpired: '+err);
	}
	
	community.stopConfirmationChecker();
	
	
	if (client.steamID) {
		client.webLogOn();
	} else {
		client.logOn(logon_details);
	}
});

  • T1MOXA and Royalgamer06 like this

#13 Royalgamer06

Royalgamer06

    Advanced Member

  • Member
  • PipPipPip
  • 87 posts

Posted 13 May 2018 - 06:41 AM

Would relog work too instead of logon? Assuming autoRelog is enabled.



#14 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 13 May 2018 - 01:55 PM

Would relog work too instead of logon? Assuming autoRelog is enabled.

 

No, you need to be connected to use relog.







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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users