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 authorize with my GitHub password (Unathorized/Not Found) #2655

Open
sekti92 opened this issue Nov 28, 2020 · 11 comments
Open

Unable to authorize with my GitHub password (Unathorized/Not Found) #2655

sekti92 opened this issue Nov 28, 2020 · 11 comments
Labels
bug

Comments

@sekti92
Copy link

@sekti92 sekti92 commented Nov 28, 2020

I already put an alias for hub on my
.bashrc
alias git=hub

But when I want to create a repos my credentials always failed

Command attempted:
git create jam_hub
github.com username: sekti92
github.com password for sekti92 (never stored):

What happened:
Error creating repository: Unauthorized (HTTP 401)
Bad credentials. The API can't be accessed using username/password authentication. Please create a personal access token to access this endpoint: http://github.com/settings/tokens

More info:
git version 2.29.1.windows.1
hub version 2.14.2

@sekti92 sekti92 added the bug label Nov 28, 2020
@amichaelc
Copy link

@amichaelc amichaelc commented Nov 29, 2020

I had the same issue. I went to the github tokens link provided and made a token, and now it works.

@mislav
Copy link
Member

@mislav mislav commented Nov 30, 2020

I'm sorry for the inconvenience. GitHub deprecated its Authorizations API, which hub relied on for exchanging a password for a token.

Until we fix this in hub, the solution is to generate a Personal Access Token (with at least repo scope) at https://github.com/settings/tokens and paste it instead of the password.

@mislav mislav pinned this issue Nov 30, 2020
@sekti92
Copy link
Author

@sekti92 sekti92 commented Dec 1, 2020

I'm sorry for the inconvenience. GitHub deprecated its Authorizations API, which hub relied on for exchanging a password for a token.

Until we fix this in hub, the solution is to generate a Personal Access Token (with at least repo scope) and paste it instead of the password.

Oh okay, I will try usng Personal Access Token then.
Cheers sir

@dominguespt
Copy link

@dominguespt dominguespt commented Dec 8, 2020

Hello, I uninstalled hub gem and did the update wit Homebrew

@sekti92 sekti92 closed this Dec 13, 2020
@mislav mislav changed the title hub failed to gives access after inserting username and password Unable to authorize with my GitHub password (Unathorized/Not Found) Dec 15, 2020
@JavaProScript
Copy link

@JavaProScript JavaProScript commented Dec 19, 2020

I'm sorry for the inconvenience. GitHub deprecated its Authorizations API, which hub relied on for exchanging a password for a token.

Until we fix this in hub, the solution is to generate a Personal Access Token (with at least repo scope) at https://github.com/settings/tokens and paste it instead of the password.

This didn't fix it for me. Error stays the same. I will try to find a fix.

@ketankshukla
Copy link

@ketankshukla ketankshukla commented Jan 15, 2021

I'm sorry for the inconvenience. GitHub deprecated its Authorizations API, which hub relied on for exchanging a password for a token.

Until we fix this in hub, the solution is to generate a Personal Access Token (with at least repo scope) at https://github.com/settings/tokens and paste it instead of the password.

You have NO idea how much I searched the internet to find this solution! THANK YOU!

@carlosloureda
Copy link

@carlosloureda carlosloureda commented Jan 16, 2021

I'm sorry for the inconvenience. GitHub deprecated its Authorizations API, which hub relied on for exchanging a password for a token.

Until we fix this in hub, the solution is to generate a Personal Access Token (with at least repo scope) at https://github.com/settings/tokens and paste it instead of the password.

Thanks @mislav. That worked for me!

@alk-gmathews
Copy link

@alk-gmathews alk-gmathews commented Feb 4, 2021

I'm sorry for the inconvenience. GitHub deprecated its Authorizations API, which hub relied on for exchanging a password for a token.

Until we fix this in hub, the solution is to generate a Personal Access Token (with at least repo scope) at https://github.com/settings/tokens and paste it instead of the password.

This information should be in the readme, and not in an issue.

@leo60228
Copy link

@leo60228 leo60228 commented Feb 8, 2021

Why was this issue closed? This seems like a pretty major issue.

@mislav
Copy link
Member

@mislav mislav commented Feb 19, 2021

True— it's not solved yet, so I'm reopening.

@mislav mislav reopened this Feb 19, 2021
@bharath-123
Copy link

@bharath-123 bharath-123 commented Feb 21, 2021

@mislav Can we change the intimation message until this is fixed? Something like github.com token for <user>: rather than github.com password for <user>: ? I think the message is fairly confusing.

bharath-123 added a commit to bharath-123/community that referenced this issue Feb 21, 2021
Recently, I performed a cherry pick for the first time. When I ran ./hack/cherry_pick_pull.sh
after setting up all the env variables, I was asked for my github password. When I gave my actual
github password it threw a 404 not found which confused me. I then came across this
github/hub#2655 (comment) . I created a github token
post which I was able to cherry pick successfully.

The hub project team is looking to fix it but until then I feel that we should document it.

Do let me know if I did something wrong here in the cherry pick process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
11 participants