-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
HTTP 401 while using 'create' action #83
Comments
|
Thanks mislav. My token was wrong. It had the old one which has since changed when I updated my pass. Everything works now. Perhaps you folks can make the error message more descriptive. Lovely product! |
Excuse my noobishness, where do I get token from? I've tried Personal API Access Tokens from Account > Applications but still getting 401... |
There is no token anymore. Update hub to the latest version and |
Thanks @mislav, thought that might be the case. I have no idea why it's not working for me then, put in my creds several times and still getting 401. I'm using Boxen.. |
What's your |
Only var set for GitHub is |
@habitullence So what happens when you do |
@mislav, here you go:
I've tried a bunch of times and checked normal login to Github with same creds. |
I am having the same issue as the comment above. |
I think this is related to two factor authentication #399. I will post on that issue instead. |
@habitullence: did you have 2-factor auth enabled? |
@mislav no, should it be? |
@habitullence You're not obligated to use it, but I was just checking if you have the same issue as @ElijahLynn. It doesn't seem so. Is the problem maybe that you're passing the repo name wrong? You're doing
It will be created under your user by default. |
@mislav yep, works great. Thanks |
So, in this ticket it turned out that @berinle, @habitullence and @ElijahLynn had 3 separate issues that share the same error message. I have to improve error messages in hub in the future and add a debugging flag that users can set to see what's going on. |
Hey there, same problem here, using two factor verification, getting a 401 when trying to create -d. |
@wildeyes Try to upgrade to master version and try again. The latest stable release doesn't support 2FA yet.
|
That's weird, since it asked me for a verfication code. I will upgrade and return here. |
@wildeyes Oh, then you have the edge version. Not sure why you're getting a 401. I'm going to add debugging features in the new version of hub when I release it. Are you using regular GitHub.com or using GH Enterprise? Are you trying to create a repo under your account or under an organization? |
Using regular GH, Repo under my account. On Mon, Oct 28, 2013 at 3:33 PM, Mislav Marohnić
No Signature. |
So im getting this error as well.. I have had no problems with hub create until now. now I get: |
@matthewgoodwin It might be that your token stored in
|
@mislav Thanks for the timely response! I dont have a Github enterprise config to my knowledge. but I also cant seen whats inside this folder as my zsh is denying permission to access this files content.. |
@matthewgoodwin I can't imagine why you don't have permissions to view files in |
@mislav Im not sure I want to delete the |
If there are other files in there. you can remove just the |
after updating my hub, I actually noticed that I have another |
all good here, thanks again @mislav ! |
I have the same problem here.
|
@tjddbs0401 I'm sorry, I don't have an idea what could be going wrong there. It seems like you are not entering the right password for your GitHub account. You can try generating and pasting a Personal Access Token instead to see if that helps. |
For people coming from Google search: if you just updated your GitHub token, then you need to edit your |
I am constantly hitting a HTTP 401 when trying to use
hub create
on my newly created project. Isn't the create action meant to auto create the project on github?
Steps:
~: mkdir -p helloworld
~: cd helloworld
helloworld: echo 'trying out hub gem' > README
helloworld: hub init -g
Initialized empty Git repository in /Users/berinle/helloworld/.git/
helloworld(master) ✗: hub add .
helloworld(master) ✗: hub commit -m "first commit"
[master (root-commit) b770670] first commit
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 README
helloworld(master): hub create
error creating repository: Unauthorized (HTTP 401)
helloworld(master):
Please advice
The text was updated successfully, but these errors were encountered: