Jump to content


Photo

Steam Community Not logged in Error

node.js node-steam-tradeoffer-manager

  • Please log in to reply
4 replies to this topic

#1 spock

spock

    Advanced Member

  • Member
  • PipPipPip
  • 36 posts

Posted 03 December 2016 - 03:16 PM

Error: Not Logged In
at SteamCommunity.<anonymous> (/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:486:25)
at Request._callback (/node_modules/steamcommunity/components/http.js:67:15)
 
I'm passing a steam community object into my trade offer manager like so
var myCommunity = new SteamCommunity();

var client = new SteamUser();
var offerMananger = new TradeOfferManager({
        steam: client,
        language: "en",
        cancelTime: 300000,
        community: myCommunity
});

Sometimes, for whatever reason, as have been stated before, my community session will timeout, expire or just logout when I attempt a trade. I get the Not logged in error.

 

 

Is there a simple way to check if myCommunity is logged out once it's attached to an offerManager? Or can I just check the loggedIn method on the myCommunity object? Do I need to reset cookies when I do this? Do I need to recreate my offerManager to set cookies? What's the recommended way?

 

 


  • Walterlyday likes this

#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,879 posts

Posted 04 December 2016 - 02:09 AM

https://github.com/D...#sessionexpired

 

When your session expires, just log in again. If you logged in via steam-user, call webLogOn again. If you logged in via steamcommunity, call login again.



#3 spock

spock

    Advanced Member

  • Member
  • PipPipPip
  • 36 posts

Posted 04 December 2016 - 03:36 PM

Thank you McKay.

 

Cheers.



#4 whoami

whoami

    Newbie

  • Member
  • Pip
  • 1 posts

Posted 24 December 2016 - 02:31 PM

image.png

PLEASE HELP :||||



#5 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,879 posts

Posted 24 December 2016 - 03:41 PM

https://httpstatuses.com/429







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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users