steamcommunity-mobile-confirmations
steamcommunity-mobile-confirmations copied to clipboard
#FetchConfirmations keeps returning error 403
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);
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.