Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging in on a custom instance does not work and is rate limited #50

Closed
almereyda opened this issue Jan 10, 2018 · 6 comments
Closed

Comments

@almereyda
Copy link
Contributor

When using our custom instance, a working combination of username and password cannot login:

wikidata-cli set-label Q223 sk "Rodová rovnosť"                                                                                                                
{ Error: login error                                                                                                                                           
    at breq.post.then.res (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/wikidata-token/lib/login.js:56:21)                    
    at tryCatcher (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/util.js:16:23)                            
    at Promise._settlePromiseFromHandler (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:512:31) 
    at Promise._settlePromise (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:569:18)            
    at Promise._settlePromise0 (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:614:10)           
    at Promise._settlePromises (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:693:18)           
    at Async._drainQueue (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/async.js:133:16)                   
    at Async._drainQueues (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/async.js:143:10)                  
    at Immediate.Async.drainQueues (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/async.js:17:14)          
    at runCallback (timers.js:789:20)                                                                                                                          
    at tryOnImmediate (timers.js:751:5)                                                                                                                        
    at processImmediate [as _immediateCallback] (timers.js:722:5)                                                                                              
  statusCode: 200,                                                                                                                                             
  body:                                                                                                                                                        
   { login:                                                                                                                                                    
      { result: 'Failed',                                                                                                                                      
        reason: 'Incorrect username or password entered. Please try again.' } } }                                                                              
wikidata-cli set-label Q224 sk "Čistá voda a hygiena"                                                                                                          
{ Error: login error                                                                                                                                           
    at breq.post.then.res (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/wikidata-token/lib/login.js:56:21)                    
    at tryCatcher (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/util.js:16:23)                            
    at Promise._settlePromiseFromHandler (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:512:31) 
    at Promise._settlePromise (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:569:18)            
    at Promise._settlePromise0 (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:614:10)           
    at Promise._settlePromises (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/promise.js:693:18)           
    at Async._drainQueue (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/async.js:133:16)                   
    at Async._drainQueues (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/async.js:143:10)                  
    at Immediate.Async.drainQueues (/home/ya/.nvm/versions/node/v8.9.4/lib/node_modules/wikidata-cli/node_modules/bluebird/js/release/async.js:17:14)          
    at runCallback (timers.js:789:20)                                                                                                                          
    at tryOnImmediate (timers.js:751:5)                                                                                                                        
    at processImmediate [as _immediateCallback] (timers.js:722:5)                                                                                              
  statusCode: 200,                                                                                                                                             
  body:                                                                                                                                                        
   { login:                                                                                                                                                    
      { result: 'Failed',                                                                                                                                      
        reason: 'You have made too many recent login attempts. Please wait 5 minutes before trying again.' } } }                                               
@almereyda
Copy link
Contributor Author

almereyda commented Jan 10, 2018

@maxlath
Copy link
Owner

maxlath commented Jan 11, 2018

do you see anything detail in your wikibase instance logs that could help identify what's wrong?

@almereyda
Copy link
Contributor Author

No, our instance is not called at all, as it is not passed to the function which generates the access token.

maxlath added a commit that referenced this issue Jan 15, 2018
init_credentials: idem with wikidata-token
addressing #50
@maxlath
Copy link
Owner

maxlath commented Jan 15, 2018

Indeed the problem was that both init_credentials and edit_command were ignoring custom instances: 6a22692 (published in v6.0.2) should fix that, can you confirm?

@almereyda
Copy link
Contributor Author

almereyda commented Jan 16, 2018

I can currently not verify this due to #49 (comment)

@almereyda
Copy link
Contributor Author

Confirmed working as of #49 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants