Jump to content
McKay Development

Steam Community Not logged in Error


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 comment
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)


Am i doing something wrong?


Edited by Ben
Link to comment
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 comment
Share on other sites

Okay i am sorry to bother you again but just now i wasnt home and i came back to see that my bot was trying to sent an offer all the time. I have programmed to so that if it gets the error it isnt logged in that i waits 5 secs and than tries to sent the offer again. But it was stuck there and tried for 45 mins because it didnt logged back in. Are you sure that the not logged in error triggers the session expired event?

Link to comment
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.

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.

  • Create New...