Jump to content
McKay Development

Recommended Posts

Posted

Hi,

    I have a problem with steamcommunity.

    I can only get trade confirmations those created manually when i call steamcommunity.getConfirmations. 

    Those trade confirmations i created with steam-tradeoffer-manager can't get them.

    Thank you for help.

     attch file 111 can see i have 2 confirmations to confirm. but when i call getConfirmations i only get one~

var time = SteamTotp.time(steamBot.community._timeOffset);
        var confKey = SteamTotp.getConfirmationKey(steamBot.option.identity_secret, time, 'conf');
        var allowKey = SteamTotp.getConfirmationKey(steamBot.option.identity_secret, time, 'allow');
        
        // steamBot.community.acceptAllConfirmations(time, confKey, allowKey, function(err, confs){
        //     if(err){
        //         res.sendError(err);
        //         return;
        //     }
        //     if(confs == null) confs = [];
        //     res.sendSuccess(confs);
        // });
        req.steamBot.community.getConfirmations(time, confKey, function(err,confs){
            if(err){
                res.sendError(err);
                return;
            }
            res.sendSuccess();
        });

post-1090-0-11514600-1494925716_thumb.png

post-1090-0-07617800-1494925725_thumb.png

Posted
client.on('webSession', (sessionID, cookies) => {
  manager.setCookies(cookies, function (err) {
    if (err) {
      logger.error(err) //Ignore logger, that's winston
      process.exit(1);
    }
  });

  community.setCookies(cookies);
  community.startConfirmationChecker(10000, config.identitySecret);
});

Is this what you need?

Posted

You can't use confirmations on two devices at once. I suspect that you're using a physical mobile phone to confirm some trades. This will cause problems like the one you describe (confirmations don't always show up).

Posted
client.on('webSession', (sessionID, cookies) => {
  manager.setCookies(cookies, function (err) {
    if (err) {
      logger.error(err) //Ignore logger, that's winston
      process.exit(1);
    }
  });

  community.setCookies(cookies);
  community.startConfirmationChecker(10000, config.identitySecret);
});

Is this what you need?

 

Thank you for your help. but this is not I want. I get confirmations manually just for avoiding 429 http error.

Posted

You can't use confirmations on two devices at once. I suspect that you're using a physical mobile phone to confirm some trades. This will cause problems like the one you describe (confirmations don't always show up).

Thank you for your help. Is it caused by different device-id or anything else ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...