Jump to content
McKay Development

Recommended Posts

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?

 

 

Link to post
Share on other sites
  • 3 weeks later...
  • 3 years later...

Hi so i have the same error: 

[2020-11-22 18:06:02] Bot #undefined Error: Not Logged In
    at SteamCommunity.<anonymous> (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:345:25)
    at Request._callback (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\steamcommunity\components\http.js:67:15)
    at Request.self.callback (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\request\request.js:185:22)
    at Request.<anonymous> (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\request\request.js:1154:10)
    at Request.emit (events.js:315:20)
    at Gunzip.<anonymous> (C:\Users\benbo\Desktop\HH\reworked_Bot\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at Gunzip.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1221:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

But i am reloggin when the session expires.

this.client = new SteamUser();
        this.community = new SteamCommunity(),
        this.manager = new TradeOfferManager({
          "steam": this.client,
          //"community" : this.community,
          "domain": "localhost"
          "language": "en" 
        })
this.community.on("sessionExpired", ()=>{
        console.log("Session Expired",FgRed,this.bot_number)
        this.client.webLogOn(this.logOnOptions);
      })

 

Am i doing something wrong?

 

Edited by Ben
Link to post
Share on other sites

Okay so i should come up once but then log back in? And after i accept an offer should i wait before requesting getExchangeDetails or is it okay to just write it in the callback? And thank you so much for your help

Edited by Ben
Link to post
Share on other sites

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...