Getting a 'error: POST https://api.github.com/authorizations: 422' when entering correct user/password #60

Closed
steipete opened this Issue Mar 5, 2014 · 0 comments

Projects

None yet

1 participant

@steipete
steipete commented Mar 5, 2014

I'm not using 2-factor auth.

After getting frustrated of all the 'Invalid username or password"' and some attempts of changing my password, I commented out rescue StandardError => e in git_reflow.rb to see what's wrong:

Please enter your GitHub username: steipete
Please enter your GitHub password (we do NOT store this): 
error: POST https://api.github.com/authorizations: 422 

My credentials must match, when I enter them wrongly I get

Please enter your GitHub username: steipete
Please enter your GitHub password (we do NOT store this): 
error: POST https://api.github.com/authorizations: 401 Bad credentials

GitHub says "Sending invalid fields will result in a 422 Unprocessable Entity response.".
What am I doing wrong here? Version 0.3.4 here (installed via gem install reflow)

@codenamev codenamev pushed a commit that closed this issue Mar 5, 2014
Valentino [fix] Setup command fails to re-authorize users with Github
Closes #60, #61

LGTM given by: @nhance

Squashed commit of the following:

commit 9cd8fa8
Author: Valentino <valentino@reenhanced.com>
Date:   Wed Mar 5 11:09:09 2014 -0500

    [fix] Setup command fails to re-authorize users with Github
63c0735
@codenamev codenamev closed this in 63c0735 Mar 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment