2016-06-26 2 views
0

내 봇에 로그인하려고하면 로그인하지만 항상 같은 오류가 있습니다. api 키를 만들 수 없습니다. 이 코드의 문제점은 무엇입니까? 나는 bot의 계정에 api 키를 설정했습니다.api 키를 만들 수 없습니다 - node.js steamcommunity

function login(err, sessionID, cookies, steamguard) { 
if(err) { 
    logger.error('Auth error'); 
    logger.debug(err); 
    if(err.message == "SteamGuardMobile") { 
     account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret); 
     logger.warn('Error in auth: '+account.twoFactorCode); 
     setTimeout(function() { 
      community.login(account, login); 
     }, 5000); 
     return; 
    } 
    process.exit(0); 
} 
logger.trace('Sucesfully auth'); 
account.sessionID = sessionID; 
account.cookies = cookies; 
community.getWebApiKey('there_is_my_vps_ip', webApiKey); 
community.startConfirmationChecker(10000, account.identity_secret); 
} 

function webApiKey(err, key) { 
    if(err) { 
     logger.error('Cant make api key'); 
     logger.debug(err); 
     process.exit(0); 
     return; 
    } 
    account.key = key; 
    logger.trace('API key bot '+account.accountName+' '+account.key); 
    offersSetup(); 
    community.loggedIn(checkLoggedIn); 
} 

나는 2 일을 기다렸다. 나는 로그인을 시도하고, 나는 같은 오류가있어.

LOG 
[2016-06-26 09:26:36.075] [INFO] [default] - DB connection ID: 107 
[2016-06-26 09:26:36.089] [TRACE] [default] - We got account info 
[2016-06-26 09:26:36.091] [DEBUG] [default] - RowDataPacket { 
    id: 1, 
    online: 0, 
    name: 'my_name', 
    steamid: 'my_steamid', 
    shared_secret: 'my_secret', 
    identity_secret: 'my_identity', 
    accountName: 'my_login', 
    password: 'my_pass', 
    steamguard: '', 
email_login: '', 
    email_password: '', 
    twoFactorCode: 'my_2fc', 
    auth: true } 
[2016-06-26 09:26:37.602] [TRACE] [default] - Sucesfully auth 
[2016-06-26 09:26:48.531] [ERROR] [default] - Cant make apikey 
[2016-06-26 09:27:00.649] [DEBUG] [default] - { Error: HTTP error 429 
    at SteamCommunity._checkHttpError   (/var/www/Bot/node_modules/steamcommunity/components/http.js:96:9) 
    at Request._callback  (/var/www/Bot/node_modules/steamcommunity/components/http.js:50:61) 
    at Request.self.callback  (/var/www/Bot/node_modules/request/request.js:200:22) 
    at emitTwo (events.js:106:13) 
    at Request.emit (events.js:191:7) 
    at Request.<anonymous>  (/var/www/Bot/node_modules/request/request.js:1067:10) 
    at emitOne (events.js:101:20) 
    at Request.emit (events.js:188:7) 
    at Gunzip.<anonymous>  (/var/www/Bot/node_modules/request/request.js:988:12) 
    at emitNone (events.js:91:20) code: 429 } 

답변

1

메신저 늦게,하지만 난 당신의 문제가 u는 그 봇에 속하는 API 키를 사용하여이 arent 것을 믿습니다. 그 acc에 $ 5를 더한 다음 www.steamcommunity.com/dev/apikey로 가십시오. 다음에 간단히 도메인을 입력하면 키가 생깁니다. index.php로 이동하여 모든 api 키를 바꿉니다. 희망이 도움이

관련 문제