Jump to content


The callback of cancel / decline contains an error

node.js node-steam-tradeoffer-manager

  • Please log in to reply
1 reply to this topic

#1 mar71n



  • Member
  • PipPip
  • 20 posts

Posted 10 March 2018 - 04:31 PM

My logic is: if the offer, sent by me, is changed, I decline it. I listen for 'sentOfferChanged', and if the offer.state == 4, I want to do offer.decline(). 


However if I do that, I am getting the errormessage Offer #3065190468 is not active, so it may not be cancelled or declined.


Where is my error? 


Thank you



#2 Dr. McKay

Dr. McKay


  • Administrator
  • 1,815 posts

Posted 10 March 2018 - 08:19 PM

You can only cancel active offers (state 2). State 4 (Countered) means that the trade offer was countered. The offer that's in state 4 is no longer active, and a new trade offer with a new trade offer ID was sent to you with the counter offer.

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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users