-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fetch-> fatal: could not read Username for 'https://github.com': No such device or address #1027
Comments
Whereas the basic VS Code Git extension asks for the password in the GUI, and does not ask it if it is loaded into the credential helper, GitLens refuses to do either. |
Hi, I've the same issue GitLens Version: 10.2.1 Steps to Reproduce: 1 - Clone any repository Output debug: |
Hi, pretty sure this is not potential bug. I experience it for 4 months maybe. Sorry, no new information, writing this to bump the thread. |
Same for me
|
Same issue on
I'm working on a remote server via remote ssh and the git remote sits on a machine in that same network on a mounted file system.
|
I'm having the exact same issue when cloning a project on Linux with HTTPS :
My project is hosted on a private instance of Gitlab that can be accessible from anywhere and where I have access rights. However this same project can be fetched from VSCode on Windows, from VSCode on Linux when it has been cloned using SSH and from the Linux terminal (without VSCode).
|
I'm having the same issue, running VS Code via SSH remote. I have not problem on local machine, or on remote machine when I select pull, issue occurs when I fetch.
|
I had the same issue and solved it by changing the origin url as suggested here https://stackoverflow.com/questions/22147574/fatal-could-not-read-username-for-https-github-com-no-such-file-or-directo#comment38938891_22852314 |
This has happened to me after my primary SSH key has changed. Looking into a fix. EDIT: Fixed now. The SSH key change was a coincidence. Kind of. Actually, I was hit in two ways at the same time from this, one of the problems was probably definitely caused the the SSH identity key change, the other problem was definitely unrelated and not caused by it however. For the first problem, just doing a fetch from Source Control sidebar with GitLens was giving me the exact same error in output as what others had reported here:
To fix that, I did the following, not sure which steps ultimately resolved the issue:
So somewhere between steps 3 and 7 fixed the issue. Could re-install GitLens and things were working again. BUT, after all the above, I was still getting a prompt for a Github.com username / password when running a git clone from bash. This is not good because would require a PAT for the password, and I previously have never enabled one. However, this second issue ended up being unrelated to the first. The issue was, I was independently testing out a new automation with tox. Tox by default does not inherit all environment variables. In the case of tox not working with Github.com ops within VS Code, the following line in your |
Can anyone still reproduce this on the latest GitLens version 11.3 or later (or the current insiders version)? |
This issue needs more information and has not had recent activity. Please provide the missing information or it will be closed in 7 days. Thanks! |
I cannot reproduce this issue any more on GitLens 11.4.1. Thanks for taking care of it. |
Hi! I use the VSCode on windows, the code runs in a WSL2 docker image. In VSCode->WSL2->Docker->terminal, the
Should I reinstall/reinitialize something? best |
I would be great if anyone who can reproduce this could try to debug it. I haven't been able to see this in action. Sorry. |
Hi and thanks for the support. I'm having this issue when working on remote - ssh extension:
I can push and I can pull - it prompts for user and pass.
I'm glad to debug it further, but I'm not sure of what you need. |
I encountered this bug a while ago (VSCode default git interface is fine, but GitLens fetch will invoke this bug), today I finally solved it by a simple git config credential.helper store before an add-commit-push. Then, this problem is solved for GitLens. |
This solves it by storing your git credentials on disk. But it's a workaround, it doesn't actually address the problem. |
I also have this bug on linux with: When trying a fetch, I have the same info stated above. [2021-07-30 13:11:45:151] [/local/home/ccossou/CLionProjects/yam_stat] Git Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false fetch origin master • could not read Username for 'https://github.com': No such device or address • 186 ms
[2021-07-30 13:11:45:151] /local/home/ccossou/.vscode/extensions/eamodio.gitlens-11.6.0/dist/gitlens.js:55:36633
Error: Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false fetch origin master
fatal: could not read Username for 'https://github.com': No such device or address If I can help, tell me what command to run, or what log to copy here. I removed the OAuth on github.com, but it doesn't even ask for my login. I logged in manually in VS code, gitlens is reinstalled and can access this account, but don't ask for it it seems. Note that I can use gitlab, but not Github.com (Not entirely sure because I have no gitlab repository where I can push to test that fully) |
I am having the exact same issue on my linux. I can use git from the terminal just fine however. Edit:
|
I am getting this error, too. This formerly worked fine, but I had to change the origin from Here's the error I see:
|
Same here using macOS.
|
I also had this problem with GitLens on Windows + WSL2 (I running my workspace in a Docker container, but I don't think that makes any difference). I went for the ' |
I was getting this until I switched to use ssh from https... before... https://github.com:myName/myRepo.git then I ran
now fetch works properly |
@jamesSampica thanks for the suggestion. But it doesn't work for me.
It may be that some configuraton is missing on the bitbucket side, but IMHO, the main issue remains open:
(paraphrasing comment 2) |
I am also experiencing the issue @nirodaonline is experiencing. However, I'm just using a normal github repo on a standard port. |
Same problem with a GitHub repo in GitLens. Any word on a real fix? I can do that credential helper thing, but it should be fixed. I can pull/push/fetch etc in GitHub desktop or from command line, but it fails through GitLens: |
For those who are still experiencing this issue, does running |
Hi @eamodio . Thanks for looking into this. I just tried |
@eamodio I just experienced this problem and fixed it by logging out of GitHub and then running What triggered the problem was mistakenly cancelling the master password popup that sometimes appears when starting VSCode, which probably made the GitHub login fail. This also produced a big problem where the GITLENS: COMMITS panel got stuck at loading, and it cascaded to the rest of the program, making it unusable, even after restarting VSCode. This produced some errors when trying to close the VSCode:
Hope it helps you debug it. |
After running Git: Fetch on command pallette, I was redirected to webpage with form "GitHub for VS Code is requesting additional permissions" where I pushed a button to "authorize Visual Studio Code" and entered my Github password. All problems dissapeared. |
I avoided this by switching my remote from https to ssh:
of course, you'll need to set up ssh keys |
Hi,
Is this still a issue? Thank you in advance! |
I did this and it worked. I did a fetch on the default git manager in VS Code and after that I used Git Lents and didn't get the error again. |
Did you store your credentials on the disk? Are you working locally or on a remote server? I can confirm that this issue is still happening on a remote server: The username / password prompt appears when fetching from the command line / command palette , but not via the GitLens fetch button. I get the same error:
GitLens v13.1.1 |
…Username Uses the core git fetch command instead of a command-line git fetch so VsCode will prompt the user for their username and password. Pull & push also use their corresponding core commands.
…Username Uses the core git fetch command instead of a command-line git fetch so VsCode will prompt the user for their username and password. Pull & push also use their corresponding core commands.
…Username Uses the core git fetch command instead of a command-line git fetch so VsCode will prompt the user for their username and password. Pull & push also use their corresponding core commands.
…Username Uses the core git fetch command instead of a command-line git fetch so VsCode will prompt the user for their username and password. Pull & push also use their corresponding core commands.
Resolved with #2481 |
I had to change before:
to
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to Reproduce:
1 - Clone any repository
2 - Click in "Fatch Repositories Button".
Output debug:
The text was updated successfully, but these errors were encountered: