spock Posted December 3, 2016 Report Posted December 3, 2016 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 1 Quote
Dr. McKay Posted December 4, 2016 Report Posted December 4, 2016 https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#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. Quote
Dr. McKay Posted December 24, 2016 Report Posted December 24, 2016 https://httpstatuses.com/429 Quote
Ben Posted November 22, 2020 Report Posted November 22, 2020 (edited) 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 November 22, 2020 by Ben Quote
Dr. McKay Posted November 23, 2020 Report Posted November 23, 2020 steamcommunity doesn't know that the session expired until it gets back a "Not Logged In" response. In other words, it's the "Not Logged In" response itself that triggers the sessionExpired event. Quote
Ben Posted November 23, 2020 Report Posted November 23, 2020 (edited) 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 November 23, 2020 by Ben Quote
Dr. McKay Posted November 23, 2020 Report Posted November 23, 2020 Yes, it will come up once and then you should get logged back in. It's fine to go ahead and call getExchangeDetails in the callback of offer.accept. Quote
Ben Posted November 25, 2020 Report Posted November 25, 2020 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? Quote
Recommended Posts
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.