sianbg Posted December 16, 2016 Report Posted December 16, 2016 Hi. I have bot and everything was fine until yesterday. This code is never called community.on('confKeyNeeded', function (tag, callback) { console.log("generirane na kluch"); callback(null, time, SteamTotp.getConfirmationKey(account.identity_secret, time(), tag));}); community.on('newConfirmation', function (confirmation) { console.log("doide nova oferta"); var time = time(); var key = SteamTotp.getConfirmationKey(account.identity_secret, time, 'allow'); confirmation.respond(time, key, true, function (err) { if (err) { console.log("neshto stana s ofertata" + err); return; } });}); This is my login function login(err, sessionID, cookies, steamguard) { if (err) { if (err.message == "SteamGuardMobile") { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret); setTimeout(function () { community.login(account, login); }, 5000); return; } process.exit(0); } account.sessionID = sessionID; account.cookies = cookies; community.getWebApiKey('website.com', webApiKey); community.startConfirmationChecker(60000, account.identity_secret); console.log("startira logina ama nakraq debug" + account.identity_secret);} I change limit to 60000 and same problem. Anyone know if steam changed something ? Quote
Dr. McKay Posted December 16, 2016 Report Posted December 16, 2016 Add community.on('debug', console.log); and provide the output. Quote
sianbg2 Posted December 16, 2016 Report Posted December 16, 2016 I cant login in my account right now, so i create new. This is output of debug. Its say accepting confirmation, bug when i check steam say waiting for mobile confirmation. <Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a>Accepting confirmation #1527283407<Buffer 43 68 65 63 6b 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 0a>Checking confirmations<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 39 30 32 35 30 35 31 0a>Accepting confirmation #1529025051<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 34 30 31 37 30 33 0a>Accepting confirmation #1527401703<Buffer 41 63 63 65 70 74 69 6e 67 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 23 31 35 32 37 32 38 33 34 30 37 0a> Accepting confirmation #1527283407 Quote
Dr. McKay Posted December 16, 2016 Report Posted December 16, 2016 All I can say is to make sure that your identity_secret is right, that your local time is right, and that you're logged in. Quote
sianbg2 Posted December 16, 2016 Report Posted December 16, 2016 (edited) can i debug something more? or change code to get all offers, and confirm 1 by 1? shoud work? edit: i remember change timezone of vps, maybe this? Edited December 16, 2016 by sianbg2 sianbg2 1 Quote
Dr. McKay Posted December 16, 2016 Report Posted December 16, 2016 If you use acceptConfirmationForObject as you send trades, that should work just as well. Timezones shouldn't make a difference with confirmations, as long as you changed the timezone and didn't literally change the clock. Quote
sianbg Posted December 16, 2016 Author Report Posted December 16, 2016 i'll try tommorow. ty for answer Quote
sianbg Posted December 17, 2016 Author Report Posted December 17, 2016 The problem was in my hosting provider. Their time was wrong. They fixed it and now my bot works 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.