Jump to content


Photo
Question

startConfirmationChecker not starting

node.js node-steamcommunity

  • Please log in to reply
7 replies to this topic

#1 sianbg

sianbg

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 16 December 2016 - 02:38 AM

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 ?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,040 posts

Posted 16 December 2016 - 02:56 AM

Add community.on('debug', console.log); and provide the output.



#3 sianbg2

sianbg2

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 16 December 2016 - 04:40 AM

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



#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,040 posts

Posted 16 December 2016 - 03:37 PM

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.



#5 sianbg2

sianbg2

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 16 December 2016 - 04:32 PM

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 by sianbg2, 16 December 2016 - 04:39 PM.

  • sianbg2 likes this

#6 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,040 posts

Posted 16 December 2016 - 05:44 PM

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.



#7 sianbg

sianbg

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 16 December 2016 - 06:09 PM

i'll try tommorow. ty for answer



#8 sianbg

sianbg

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 17 December 2016 - 10:49 AM

The problem was in my hosting provider. Their time was wrong. They fixed it and now my bot works :)







Also tagged with one or more of these keywords: Question, node.js, node-steamcommunity

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users