Jump to content


Photo
Question

acceptConfirmationForObject Give me Error without any error Message

node.js node-steam-user

Best Answer Hellcase031 , 17 February 2018 - 03:44 AM

I already mentioned in my question Give me Error without any error Message.

 

But, I got solution for that issue.

 

Problem is I used identitySecret statically which is not work. Then I used identitySecret From maFile which is working like charm!!!

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Hellcase031

Hellcase031

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 14 February 2018 - 07:09 AM

var client = new SteamUser();

var community = new SteamCommunity();

var manager = new TradeOfferManager({
    "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam
    "domain": "example.com", // Our domain is example.com
    "language": "en", // We want English item descriptions
    "cancelTime" : 120000 //Cancellation Time in miliseconds 1000 ms = 1 second, After 2 minute cancel trade
});

 

 

 

var offer = manager_coinflip.createOffer(user_trade_url);
offer.addTheirItems(inv_to_trade);
offer.setMessage(secretMessage);
offer.send(function (err, status) {
    community.acceptConfirmationForObject("identitySecret", offer.id, function(invAcceptErr) {
        if (invAcceptErr) {  //Here I got error but do not print any error message in
          Console.log("Winner Trade Accept Error : ",invAcceptErr);
          return true;
        }
    });
})

 

 

Note : In above code I am putted statatically "identitySecret". Is it correct? Please let me suggest where I am wrong ?



#2 McMuffinDK

McMuffinDK

    Advanced Member

  • Member
  • PipPipPip
  • 49 posts

Posted 15 February 2018 - 05:21 AM

What error do you get?



#3 Hellcase031

Hellcase031

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 17 February 2018 - 03:44 AM   Best Answer

I already mentioned in my question Give me Error without any error Message.

 

But, I got solution for that issue.

 

Problem is I used identitySecret statically which is not work. Then I used identitySecret From maFile which is working like charm!!!


Edited by Hellcase031, 17 February 2018 - 03:48 AM.






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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users