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

Unable to sign in and create oauth token. #882

Closed
randomor opened this issue Apr 29, 2015 · 8 comments
Closed

Unable to sign in and create oauth token. #882

randomor opened this issue Apr 29, 2015 · 8 comments

Comments

@randomor
Copy link

This is what I get when trying to use hub today.

→ hub --version
git version 1.9.2
hub version 1.12.3
github browse
github.com username: xxxx@gmail.com
github.com password for xxxx@gmail.com (never stored): 
two-factor authentication code: 385930
/usr/local/bin/hub:680:in `block in fetch_value': no value for key :oauth_token (RuntimeError)
    from /usr/local/bin/hub:678:in `fetch'
    from /usr/local/bin/hub:678:in `fetch_value'
    from /usr/local/bin/hub:778:in `oauth_token'
    from /usr/local/bin/hub:561:in `apply_authentication'
    from /usr/local/bin/hub:600:in `apply_authentication'
    from /usr/local/bin/hub:489:in `perform_request'
    from /usr/local/bin/hub:611:in `perform_request'
    from /usr/local/bin/hub:439:in `get'
    from /usr/local/bin/hub:305:in `block in username_via_auth_dance'
    from /usr/local/bin/hub:764:in `block in username'
    from /usr/local/bin/hub:679:in `block in fetch_value'
@aklinkert
Copy link

+1 Same for me.

@ecasilla
Copy link

👍

@mislav
Copy link
Owner

mislav commented May 26, 2015

Sorry, this is a problem with an old version of hub due to GitHub API changes. Please upgrade to either 1.12.4 or, even better, the new 2.2.x series. Thanks

@randomor
Copy link
Author

@mislav, brew update; brew upgrade hub is not working. Wondering what's the correct way to upgrade? Thanks.

@mislav
Copy link
Owner

mislav commented May 26, 2015

@randomor What is the result or error message of brew commands you listed? They look correct.

@randomor
Copy link
Author

@mislav, it just says Error: hub HEAD already installed I'm guessing the brew recipe is not up to date?

@mislav
Copy link
Owner

mislav commented May 26, 2015

Ah, then please first uninstall hub and then install it again with Homebrew. It's because you've installed the HEAD version before, and Homebrew doesn't know how to brew upgrade it (it's a limitation of Homebrew)

@randomor
Copy link
Author

@mislav, that's it! Thanks for the great tool. 💯

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

4 participants