-
Posts
74 -
Joined
-
Last visited
Everything posted by TheMaster
-
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
-
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?
-
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}`) });
-
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
-
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}`) });
-
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
-
Thanks any leads on if we can use any of dr.mackays libs to produce an inspect server?
-
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 ?
-
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)
-
Invalid input SteamID [object Object]
TheMaster replied to ggforces's topic in node-steam-tradeoffer-manager
brother in order to send the tradeoffer u need the trade link the assetid of the item u want to send and a message i srsly dont know y u are parsing steam if so many times ifu have the complete trade url just use that if the partner in the trade url is missing and u need it then parse thesteamid 64 to get the id32 assuming u have the trade token already The error is caused due to u are calling the send offer with the wrong data most likely the steamid mistake or wrong format as ur error says or calling it where u are not supposed to or with incomplete data try to console,log what data are u sending when u are calling the send offer method. -
Exchange only with APIKEY and TradeLink
TheMaster replied to pedroflores's topic in node-steam-tradeoffer-manager
u are saying without login and pass then u are saying by logging in the site how u login ? -
steamcommunity.com's DNS records appear to have been wiped, preventing you from loading Steam Community (unless you have a cached DNS entry!). This was temporary and is now fixed
-
so this is the algorithm i think is possible as i dont have the trade id of the trade from the p2p website what i do is i check i modify the received offer changed event to get the trade offer id of the gift trade and then use the getOffer(id, callback) method to call the get exchange details method as it says in the wiki it must be created with the get offer or offers method right? TradeOffer is a class which represents an individual trade offer sent or received by your account. It cannot be instantiated directly, it must be created using TradeOfferManager#createOffer, TradeOfferManager#getOffer, or TradeOfferManager#getOffers.
-
then how to get the new asset ids i somewhere saw this mapping but cant remember the same get exchage details?
-
manager.on('receivedOfferChanged', function(offer, oldState) { console.log(green, `RECEIVED OFFER changed: ${TradeOfferManager.ETradeOfferState[oldState]} -> ${TradeOfferManager.ETradeOfferState[offer.state]}`); // Extract asset IDs and market hash names of the received items if (offer.itemsToReceive && offer.itemsToReceive.length > 0) { offer.itemsToReceive.forEach(item => { console.log(`Received item asset ID: ${item.assetid}, Market Hash Name: ${item.market_hash_name}`); }); } else { console.log('No items received in this offer.'); } });
-
i have now resolved issue to listening received offerchange event when a n offer changes to accepted and is a gift then it extracts the id and send it to db is this approach ok?
-
they are one way trades like when u get trades from p2p market places i have read the description of the method this applies to two way trades i am asking about 1 way trades or in other words gift trades
-
my problem statement is i want to input the asset ids and the name of items in my database as soon as they are received what is the most fastest and efficient way to do that?
-
I want to map the asset ids of items that some in my inventory by that i mean i have a accept gifts function which accepts gift trades i want to see the new asset id of the item how can i do that without calling additional methods is this possible ?
-
yah thats what i told u noice work
-
I have treated the error on my end I was calling the send offer without checking partner so I fixed it I am suggesting that the error should be handled gracefully as u have written the error message but instead it crashes code Respectfully,
-
brother it is contained in the mafile created by SDA or setting up the account auth using the DR.mckay libraries (never used this way)
-
i am very sorry for the late reply it seemslike the the error was happening when i was calling the sendoffer function with in valid or incomplete details but instead of showing what was the cause it was crashing the program with the above error so i adjusted the main if statement on the new trade offer to if (!this.partner?.isValid || !this.partner?.isValid() || this.partner?.type != SteamID.Type.INDIVIDUAL) { throw new Error("Invalid input SteamID " + this.partner); } in this way we safely access or try to access the contents and dosent crashes the program