Jump to content
McKay Development

All Activity

This stream auto-updates

  1. Past hour
  2. why does the IEconService/GetTradeStatus/v1 method return an empty response? I tried using the developer access key from both the account that sent the items and the bot that received the items. And the response is still empty. Tradeid used the one that was given by offer.send when creating the trade. https://api.steampowered.com/IEconService/GetTradeStatus/v1/?key=CAFBBC72E27B49776xxx1xxF9792643E&tradeid=8345025797 https://api.steampowered.com/IEconService/GetTradeStatus/v1/?key=CAFBBC72E27B49776xxx1xxF9792643E&tradeid=8345025797&get_descriptions=true&language=en_us
  3. Today
  4. thanx. this method fixed this problem
  5. same issue on newest version node:internal/buffer:86 throw new ERR_BUFFER_OUT_OF_BOUNDS(); ^ RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to access memory outside buffer bounds at boundsError (node:internal/buffer:86:11) at Buffer.readUInt32LE (node:internal/buffer:222:5) at TCPConnection._readMessage (C:\Users\PC\Desktop\checler\node_modules\steam-user\components\connection_protocols\tcp.js:194:33) at Socket.emit (node:events:518:28) at emitReadable_ (node:internal/streams/readable:834:12) at onEofChunk (node:internal/streams/readable:812:5) at readableAddChunkPushByteMode (node:internal/streams/readable:466:5) at Readable.push (node:internal/streams/readable:392:5) at TCP.onStreamRead (node:internal/stream_base_commons:231:12) { code: 'ERR_BUFFER_OUT_OF_BOUNDS' }
  6. Yesterday
  7. Hey doc! I’m using steam-session to make qr code authentication on my testing website for login in on the bot account and when I’m running the script on local host it’s going well but when I’m deploing this application and I’m trying login through QR code in steam mobile app it shows that I’m logging in from a different place and the app is not allowing me to log in so can someone help me with this? Pls<3
  8. Last week
  9. Have you acknowledged the modal about trade protection? You need to do that or call acknowledgeTradeProtection in node-steamcommunity once per account to be able to trade.
  10. if (response.statusCode != 200) { if (response.statusCode == 401) { this.manager._notifySessionExpired(new Error("HTTP error 401")); Helpers.makeAnError(new Error("Not Logged In"), callback); return; } console.log(response.statusCode); console.log(callback); console.log(body); Helpers.makeAnError(new Error("HTTP error " + response.statusCode), callback, body); return; } 500 [Function (anonymous)] { strError: 'An error occurred. Please see your Trade Offers page on Steam for information about changes to trading.' } This in send method from tradeoffer.js. const SteamUser = require('steam-user'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); // const community = new SteamCommunity(); const steamID = SteamCommunity.SteamID; //===================INIT STEAM USER======================== const client = new SteamUser(); //===================INIT TRADE OFFER MANAGER======================== const manager = new TradeOfferManager({ steam: client, domain: 'domain.com', language: 'en' }); client.logOn({ accountName: botConfig.username, password: botConfig.password, twoFactorCode: require('steam-totp').getAuthCode(botConfig.sharedSecret) }); client.on('loggedOn', () => { console.log(`Bot ${botConfig.username} logged in`); const personaName = client.steamID.getSteamID64(); console.log(`Bot persona name: ${personaName}`); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies, err => { if (err) { console.error(`Failed to set cookies for bot ${botConfig.username}:`, err); process.exit(1); } community.setCookies(cookies); community.startConfirmationChecker(30000, botConfig.sharedSecret); console.log(`Bot ${botConfig.username} ready to trade`); }); bot.manager.getUserInventoryContents(userSteamId, appid, contextid, true, (err, inventory) => { if (err) { console.log("Failed to get client user inventory:", err); return; } if (inventory.length === 0) { console.log("client user inventory is empty."); return; } console.log(`take first item`); const firstItem = inventory[0]; const offer = bot.manager.createOffer(userTradeUrl); //example https://steamcommunity.com/tradeoffer/new/?partner=xxx141&token=xxfacGs offer.addTheirItem({ appid: appid, contextid: contextid, assetid: firstItem.assetid }); offer.send((err, status) => { if (err) { console.error("Failed to send offer:", err); console.error("Steam response:", err.cause || err.response || err.body); return res.status(500).json({ success: false, message: 'Error sending trade offer', error: err.message }); } console.log("Trade offer sent successfully! Status:", status); }); }); Failed to send offer: Error: An error occurred. Please see your Trade Offers page on Steam for information about changes to trading. Both accounts meet the requirements. All authorizations are successful. I can go to tradeurl and send a trade manually. The only message I get after sending is that the trade will be delayed until 15 days due to not using steam guard for a long time (something like that). steam response all err./ empty for this error what is my mistake
  11. It's based on whether Steam reports if you have a wallet or not. I believe it becomes true the first time you fund your wallet (and thus set a currency for it).
  12. The hasWallet property in the wallet data returns either true or false, but what is this value based on? Is hasWallet always false for limited accounts and always true for non-limited accounts?
  13. Earlier
  14. I feel stupid for not trying that out from the beginning! Thanks for quick response.
  15. Just add 2FA the same way you would if you had a phone number. The code gets sent to your email instead of your phone.
  16. I was going through this suggestion you made of using node-steamcommunity but it looks like steam account needs to have a phone number verified before that process can be followed. In steam mobile app, I noticed that you can get steam guard working even without adding any phone number. I believe same process is followed by Steam Desktop Authenticator as well. Is there some option available in node-steamcommunity as well? Am I missing something here? I tested adding steam guard without phone number on a new account using ipad, if that matters.
  17. Hello, I have searched all over the internet, but couldn't figure out anything. Is anyone familiar with what `player_xp_bonus_flags` maps to? I got a `16` field value on my account, so I assume that would relate to my account currently having weekly XP boost available, but I'm not sure at all. Thanks for any replies
  18. https://github.com/DoctorMcKay/node-steamcommunity/wiki/CSteamUser#commentmessage-callback
  19. Is comment posting available in the module?
  20. A trade that's reversed during Trade Protection will go to status 12 in GetTradeHistory and GetTradeStatus.
  21. A previous offer's corresponding tradeid couldn't be found in the trade history API because the previously saved time_updated value was not the latest—it had changed. By using the updated time_updated value, the corresponding tradeid can be found in the trade history.
  22. In GetTradeStatus, even if a trade is rolled back midway, it still returns a success status (3). It has been observed that when using the start_after_time parameter in the GetTradeHistory API, there are still cases where the corresponding tradeid is not returned—approximately 1 out of every 20 trades. Therefore, it’s still necessary to paginate through the results to locate it.
  23. Or you could just use GetTradeStatus which takes a tradeid as input?
  24. Retrieve time_updated from the Trade Offer API First, use the Steam Trade Offer API to get the time_updated field of the target trade. For example: https://api.steampowered.com/IEconService/GetTradeOffer/v1/?tradeofferid=8301957547&access_token=xx.xx.xx { "response": { "offer": { "tradeofferid": "8301957547", "tradeid": "807950398061201297", "time_updated": 1753501576, ... } } } Use time_updated as the start_after_time parameter to query the Trade History API Next, pass the time_updated value as the start_after_time parameter when calling the Trade History API: GET https://api.steampowered.com/IEconService/GetTradeHistory/v1/?max_trades=1&start_after_time=1753501576&access_token=xxx.xxx.xxx The API response will include the trade information starting from that timestamp: { "response": { "more": true, "trades": [ { "tradeid": "807950398061201297", "time_init": 1753501576, ... }, ... ] } } This method allows you to accurately locate a trade in the trade history using the time_updated value, which is useful for tracking or further processing.
  25. They stay the same. Only the contextid is changing after the 7 Days back to the normal (2) as far as i can tell.
  26. If getting this error "not act on confirmation", must call acknowledgeTradeProtection https://github.com/DoctorMcKay/node-steamcommunity/commit/a61b50b7a2c2d2e6baa8a6592d26f24a0656058e
  27. For us, assetids not changed, all items after protection lock copied to context 2 with same assetid (and now have same items on context id 16 and 2 🙂)
  28. I know it's been a while. But if this is still relevant for you, I have just released the first version of my CLI-Based Inventory manager INVMAN. I am grateful for every feedback I can get.
  29. I don't know; you'll have to look for yourself.
  1. Load more activity
×
×
  • Create New...