Jump to content


Photo

Issues confirming objects.

node.js node-steam-tradeoffer-manager

  • Please log in to reply
2 replies to this topic

#1 Eradicate

Eradicate

    Member

  • Member
  • PipPip
  • 25 posts

Posted 20 April 2018 - 12:23 PM

I'm having multiple bots which I store in a public array named `publicManager`.

I have set my manager options as the following for each bot;
 

      const manager = new TradeOfferManager({
        steam: client,
        community: community,
        language: 'en',
        "cancelTime": 60 * 3 * 1000 
      });

      manager.id = data.id;
      manager.identity_secret = data.identity_secret;

When the bot his client receives the webSession call I push the object into the publicManager array, now whenever I try send a trade with it I will get the bot by finding his BotId.

Now I'm having issues trying to confirm the offer, everything goes well until it gets to the confirmation part;
 

offer.send((err, status) => {
        if (err) {
          console.log(err);
        } else {                  
          selectedManager.acceptConfirmationForObject(selectedManager.identity_secret, offer.id, function(err){
            if(err){
              console.log(err);
              return;
            }

            console.log('Succesfully confirmed the offer.');
          });
        }
      });

for some odd reason it throws the error OfferLimitExceeded (e15), altough there are no trades open, did I misuse acceptConfirmationForObject? Cause' I'm a bit lost at this point.

Thanks in advance.

 



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,751 posts

Posted 20 April 2018 - 12:40 PM

Most likely OfferLimitExceeded is coming from the actual call to offer.send(), not from confirming it. There's also a limit on how many offers can be awaiting confirmation, maybe you hit that.



#3 Eradicate

Eradicate

    Member

  • Member
  • PipPip
  • 25 posts

Posted 20 April 2018 - 05:15 PM

Most likely OfferLimitExceeded is coming from the actual call to offer.send(), not from confirming it. There's also a limit on how many offers can be awaiting confirmation, maybe you hit that.

He did have 5 awaiting confirmations, I'll check after declining those.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users