steamcommunity-mobile-confirmations icon indicating copy to clipboard operation
steamcommunity-mobile-confirmations copied to clipboard

#FetchConfirmations keeps returning error 403

Open aleksiaaa opened this issue 9 years ago • 1 comments

Hello. My problem is, #FetchConfirmations returns error 403 most of time. It has been worked, but like 50% of time it return this error. What may cause it?

My code:

setInterval(function () {
    console.log("Auth key: "+SteamTotp.generateAuthCode(config.shared_secret));

    if (mobileConfirmations) {
        mobileConfirmations.FetchConfirmations(function (err, confirmations) {

            if (err) {
                helper.msg("MOBILE ERROR: " + err);
                return;
            }

            if (confirmations.length > 0) {
                helper.msg('received  ' + confirmations.length + ' outstanding confirmations');
                if (!confirmations.length) {
                    return;
                }
                mobileConfirmations.AcceptConfirmation(confirmations[0], function (err, result) {
                    if (err) {
                        helper.msg(err);
                        return;
                    }
                    helper.msg('accepted confirmation result:' + result);
                });
            }
            ;
        });
    }
}, 10000);

aleksiaaa avatar Dec 21 '15 14:12 aleksiaaa

If you are using trade-offer-manager, 403 offers means that your cookies becomes bad (for example if you logged on somewhere else), you should refresh your cookies in this case.

GlebkaF avatar Dec 21 '15 21:12 GlebkaF