Jump to content
McKay Development

TheMaster

Member
  • Posts

    90
  • Joined

  • Last visited

Everything posted by TheMaster

  1. i want to get the user inventories for them to display on my project for those users who dont use the steam creds to log in so i want to know what is the rate limit of the steam side for the get user inventory contents so i can get their inventory and not get rate limited on my account
  2. @Dr. McKay
  3. i want to validate if a user entered rhe identity secrect correctly so my plan that i implemented was that i will create a api key and handle the confrim mation to see if the api key creates but as th apikey is already created and the steam servers are constantly replying Busy Iwant to know if there is a easy way of verifying this Currrent code async function createSteamApiKey() { return new Promise((resolve, reject) => { const retryDelay = 30000; // 30 seconds const retryLimit = 1; // Retry limit let retryCount = 0; function attemptCreateKey() { if (retryCount >= retryLimit) { console.log(`Retry limit exceeded. Setting isbusy to true.`); isbusy = true; // Permanently set isbusy to true return resolve(false); // Resolve the promise to stop further execution } console.log(`Attempting to create Web API key (Attempt ${retryCount + 1})...`); const options = { domain: "localhost", identitySecret: identity }; community.createWebApiKey(options, (err, result) => { if (err) { if (err.eresult === 10) { // Busy error console.log("API busy, retrying in 30 seconds..."); retryCount++; return setTimeout(attemptCreateKey, retryDelay); } return reject(err); // Handle other errors } if (result.confirmationRequired) { console.log("Mobile confirmation is required to create the Web API key."); return resolve({ confirmationRequired: true, finalizeOptions: result.finalizeOptions }); } console.log("API key created successfully: " + result.apiKey); isbusy = false; // Reset isbusy to false if successful resolve(result.apiKey); // Resolve the promise with API key }); } attemptCreateKey(); // Start the attempt }); } Update: the steamservers only return buys if we try to create a api on top of a api the thing that was writtten in the docs has now been set to true i read the doc idk if i am blind but i didnt saw a function to delete/revoke the webapi
  4. fixed for now i guess
  5. read the mobile access token thingy
  6. can i know what is your end goal here u dont want to use the phone to approve the login am i right? You want o do it using node -steam community i think this is the closest i can guide u take a look here if this helps https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#setmobileappaccesstokenaccesstoken i think this is related to the mobile app functionality or y can wait for dc.mckay to reply here
  7. for me this error occurs when generally browsing on steam the user was using a custom link but changed it
  8. Hey when ever i login there is no confirmation as in the confirmations tab it usually requires the guard code and thats it, can u be more explanatory on how u are logging in ?
  9. How are u calling the Logon?
  10. as far as i know these class ids a permanent y dont u just save these and move forward instead request again and again????????????? This was ur original question given u have now all the assetids just save the values to the database
  11. the way i see it and i could be wrong the same ratelimits should be applied on them as it mimics the browser ,the access token , so u cant spam it btw why do u want to call the get offer 100k times per day LOL
  12. oooo i made a flag my self when i called log on i set the "loggingon" flag to true and when the the loggon emitted i set the flag to false but didnt used the disconnected event handler to set a flag also i have some improvements to the logon function if u will consider them , what i did is i emitted and error in case of dupe logon request and returned the function this will prevent a fatal error and a crash ifu have thoughts about it lmk logOn(details) { // Delay the actual logon by one tick, so if users call logOn from the error event they won't get a crash because // they appear to be already logged on (the steamID property is set to null only *after* the error event is emitted). // Go ahead and create the Error now, so that we'll have a useful stack trace if we need to throw it. let alreadyLoggedOnError = new Error('Already logged on, cannot log on again'); let alreadyConnectingError = new Error('Already attempting to log on, cannot log on again'); process.nextTick(async () => { if (this.steamID) { console.log('Error: Already logged on'); this.emit('error', alreadyLoggedOnError); return; } if (this._connecting) { console.log('Error: Already attempting to log on'); this.emit('error', alreadyConnectingError); return; } this.steamID = null; this._cancelReconnectTimers(); this._initProperties(); this._connecting = true; this._loggingOff = false;
  13. Is there any flag that shows that there is an ongoing attempt to logon by steam user if the auto relogin is set to true? Any flag or property
  14. Hey U can easily do that using the market.csgo api endpoint https://market.csgo.com/api/v2/prices/class_instance/USD.json just send a get request with no auth and u can parse the response as u like
  15. u can just add the proxies in the constructors of steam user and steamcommunity its that simple
  16. yeah i have made a switch mechanism using that thanks for reminding me that was a thing i have set it up earlier but never used it in anyway other than showing that my accountwas logged i see a dm feature on this platfrom do u reply to dms?
  17. ok so i have done the following the probably last question i have is as there is too much happening in app i may have over looked something client.on('error',async(err)=>{ //SteamUser.EResult[err] if(err){ await helpers.sleep(10000) if(!client.steamID){ client.logOn(logOnOptions); } } console.log(`The error Created by the error event incase djfdsjfbsdjgfnbsdjgsngjsgjs ${err}`) }); So the question i have is How can i know because there is no callback ok logON() that my log on was successful should i set up a loop inside the error event while i am calling the logon to continous check for steam id and call log on with a delay i think this is where the exponential backoff kicks in
  18. ok so here is what i have thought listen for all error and as the documentation says that the client.steamID is redifined everytime the error event is called if the steam id is not found i.e. if(!client.steamID) i put a exponential backup algorithm to call logon in this way all the possible errors will be covered regarding the steam disconnection and i will put a 10s delay in calling the logon first time Sounds like a good plan?
  19. so this is what i did as there is no enum for Request Timed Out in the eresult you donot need to reply to this if its al right u can just react to it to let me know its fine client.on('error',async(err)=>{ //SteamUser.EResult[err] if(err.message==="Request timed out"){ client.logOn(logOnOptions); } console.log(`The error Created by the error event incase djfdsjfbsdjgfnbsdjgsngjsgjs ${err}`) });
  20. the main question was this if happens a lot and it causes the program to crash how can i reinitialize the process of retrieving the steam server list from the webapi idk if its even possible whats the fix to this? Thanks for your previous reply
  21. ok so i am currently listening for the error event this is the code that i wrote to listen it so i purpose fully disconnetcted my internet when the app was running and i got this The error Created by the error event incase djfdsjfbsdjgfnbsdjgsngjsgjs Error: connect EHOSTUNREACH 192.144.11.39:30013 i was expecting a enum that i could pass into the erusult in this case when i was logging err.eresult i was getting undefined and i dont exacly know what u mean by handling the upper situation happens or the internet is dced what should i do to not crash it reinitialize everything after a sleep item ? client.on('error',async(err)=>{ //SteamUser.EResult[err] console.log(`The error Created by the error event incase djfdsjfbsdjgfnbsdjgsngjsgjs ${err}`) });
  22. i am i am willing to make an inspect server its no big issue but the main thing is the image creating i need the exact image like the cs.mony and such ss tools
  23. Thanks any leads on if we can use any of dr.mackays libs to produce an inspect server?
  24. i want to create a screenshot service just like the buff and cs money one i saw a image related endpoint https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem#getimageurl i want to create the front and back side of item through inspect link can this endpoint fullfill my need or do i have to go advanced? of is there any thing present in the libraries that i can use ?
  25. hi i am facing code crashes on a few occasion for example when the steamcommunity has a 503 error means their server is down or when the steam user request time outs the problem is that it is inherent to the libraries once these occur the whole code crashes isnt it should have a backoff or retry mechanism? instead of the throwing of error whats teh fix to this? \node_modules\steam-user\node_modules\@doctormckay\stdlib\lib\promises\timeoutPromise.js:12 let err = new Error('Request timed out'); ^ Error: Request timed out at timeoutPromise (C:\Autoconfirmbot\node_modules\steam-user\node_modules\@doctormckay\stdlib\lib\promises\timeoutPromise.js:12:15) at HttpClient.request (C:\Autoconfirmbot\node_modules\steam-user\node_modules\@doctormckay\stdlib\lib\http\client\HttpClient.js:63:46) at SteamUser._apiRequest (C:\Autoconfirmbot\node_modules\steam-user\components\06-webapi.js:60:26) at SteamUser._doConnection (C:\Autoconfirmbot\node_modules\steam-user\components\09-logon.js:296:32) at Timeout._onTimeout (C:\Autoconfirmbot\node_modules\steam-user\components\09-logon.js:311:27) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) Emitted 'error' event on SteamUser instance at: at SteamUser._doConnection (C:\Autoconfirmbot\node_modules\steam-user\components\09-logon.js:309:10) at runNextTicks (node:internal/process/task_queues:60:5) at listOnTimeout (node:internal/timers:540:9) at process.processTimers (node:internal/timers:514:7)
×
×
  • Create New...