anazyka Posted May 28, 2016 Report Posted May 28, 2016 Hi all, I'm trying to setup node-steamcommunity to accept trade offers from my VPS. I just copied simple script from node-steam-tradeoffer-manager: steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) { if (err) { console.log("Steam login fail: " + err.message); process.exit(1); } fs.writeFile('steamguard.txt', steamguard); console.log("Logged into Steam"); manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); }); steam.startConfirmationChecker(5000, config.sharedSecret); // Checks and accepts confirmations every 30 seconds }); It works on my local machine (windows 10) - bot is able to accept confirmations. I tried to run this on my VPS (debian) but I'm still getting error: Can't check confirmations: It looks like your Steam Guard Mobile Authenticator is providing incorrect Steam Guard codes. This could be caused by an inaccurate clock or bad timezone settings on your device. If your time settings are correct, it could be that a different device has been set up to provide the Steam Guard codes for your account, which means the authenticator on this device is no longer valid.fakeI checked every issue on github, every post on forum but still don't know what is going on. On my VPS and local computer I have the same time. I tried to modify time on my vpsy with: " date -s "5 seconds ago"" and " date -s "5 seconds" but it doesn't work. VPS is located in France, my local computer is located in Poland. I also tried with dedicated server from online.de, problem still exists. I added:console.log(SteamTotp.time());to my script and I see the same timestamp on both machines. Guys - could you help me? Quote
Dr. McKay Posted May 28, 2016 Report Posted May 28, 2016 That error means that either your secret is wrong or your clock is wrong. If you're using the same code and the same secret on both machines, then the time must be wrong on the VPS. Quote
cookie Posted May 30, 2016 Report Posted May 30, 2016 if you're running linux do run these commands rm /etc/localtime ln -sf /usr/share/zoneinfo/GMT /etc/localtime Quote
Dr. McKay Posted May 30, 2016 Report Posted May 30, 2016 if you're running linux do run these commands rm /etc/localtime ln -sf /usr/share/zoneinfo/GMT /etc/localtime Don't do this. Timezones don't matter. Quote
cookie Posted May 30, 2016 Report Posted May 30, 2016 (edited) Don't do this. Timezones don't matter. When changing Timezones the hours will be deducted/added to the clock but not the seconds, so he'll have to synchronize it himself Edited May 30, 2016 by cookie Quote
banned Posted June 6, 2016 Report Posted June 6, 2016 steam.startConfirmationChecker(5000, config.sharedSecret); Shouldnt you be passing it identity secret and not shared secret? banned 1 Quote
Recommended Posts
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.