Drepic
-
Posts
7 -
Joined
-
Last visited
Posts posted by Drepic
-
-
Hi, I'm getting a duplicate response error (EResult: 29), when I call the following code.
manager.getInventoryContents(730, 2, true, (err, inventory) => { if (err) { console.log(err); }else{ //other code here, never reached } });
This is run multiple times, but I need to be able to run it multiple times as the inventory is changing. How do I resolve this error ? Do I need a delay between requests ?
-
I was wondering if there is a way to use the getInventoryContents method, but only to get the items that are not currently in a trade. At first I thought the 'tradableOnly' parameter would do the trick. However, I think I was wrong.
Thanks for the help.
-
-
Did you perhaps set the
apiKey
property manually?No, I just used the domain parameter. Also, while the two bots I'm testing have the same domain, they have different API keys. Neither of which are the API key associated with the domain I registered with steam.
Actually, they are the correct
apiKey
s associated with the accounts. I haven't seen this problem anywhere else. I'm wondering if I'm doing anything wrong. Should I be using node-steam-tradeoffer-manager-2 (via npm) instead ? -
No, I just used the domain parameter. Also, while the two bots I'm testing have the same domain, they have different API keys. Neither of which are the API key associated with the domain I registered with steam.
-
Hi,
I currently am working a trading bot. I think it may pertinent that I am running multiple bots. However, I seem to receive the following error when the following code is called and the correct steam64id is the partner to the trade.
manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteam3RenderedID() + " To bot: " + index); if (offer.partner.getSteamID64() === 'ID IS HERE') { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`Accepted offer. Status: ${status}.`); } }); }else{ offer.decline(); } });
I have tried re-sending the trade, but more often than not the error persists. Here is the specific stack trace:
{ Error: There was an error accepting this trade offer. Please try again later. (42) at Object.exports.makeAnError (D:\Save Locations\Documents\HTML and Web\CStrike.bet\Website\Steambot\node_modules\steam-tradeoffer-manager\lib\helpers.js:12:12) at SteamCommunity.manager._community.httpRequestPost (D:\Save Locations\Documents\HTML and Web\CStrike.bet\Website\Steambot\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:649:13) at Request._callback (D:\Save Locations\Documents\HTML and Web\CStrike.bet\Website\Steambot\node_modules\steamcommunity\components\http.js:69:15) at Request.self.callback (D:\Save Locations\Documents\HTML and Web\CStrike.bet\Website\Steambot\node_modules\request\request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (D:\Save Locations\Documents\HTML and Web\CStrike.bet\Website\Steambot\node_modules\request\request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (D:\Save Locations\Documents\HTML and Web\CStrike.bet\Website\Steambot\node_modules\request\request.js:1091:12) eresult: 42 }
Thanks for the help.
Duplicate Request Error
in node-steam-tradeoffer-manager
Posted
Thanks, I'll see what happens.