I've got the credential manager installed, but when I do a git push I get prompted for my credentials every time. The manager appears to be called, as I can see the credentials added to the credential store.
>git config --global --list
[...]
credential.helper=manager
credential.writelog=true
>git push
Fatal: AggregateException encountered.
Fatal: AggregateException encountered.
Username for 'https://github.com':
[...]
The file .git/credential.log is empty, so I don't know where I could find any additional diagnostic information :-(
Fatal: AggregateException encountered. is obviously hiding the real error message.
I hope to have a new version out today which will have improved logging.
OK, the error I get from the log with the new version is:
Fatal: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
I'm working on a corporate network with an ISA firewall. My browser doesn't need proxy credentials, it just picks up my Windows authentication I presume. Also, I have the Forefront TMG client installed, which allows most other client code (for example, git itself!) to transparently see the internet with no proxy settings needed.
I don't know much other than the above about my network config. But on a previous PC I had the older version of the Windows credential manager for git (I can't recall the exact name) and it worked transparently. So something is different here, but I don't know what.
Full log below, although I don't see anything else of interest it
Log Start (2015-12-02 13:48:31Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Get
targetUri = https://github.com/
Program::CreateAuthentication
detecting authority type
authority it GitHub
Fatal: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthority.<ValidateCredentials>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthentication.<ValidateCredentials>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.CredentialHelper.Program.<>c__DisplayClass38_1.<<Get>b__2>d.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.Alm.CredentialHelper.Program.Get()
at Microsoft.Alm.CredentialHelper.Program.Main(String[] args)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthority.<ValidateCredentials>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthentication.<ValidateCredentials>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.CredentialHelper.Program.<>c__DisplayClass38_1.<<Get>b__2>d.MoveNext()<---
Log Start (2015-12-02 13:48:35Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Get
targetUri = https://github.com/
Program::CreateAuthentication
detecting authority type
authority it GitHub
Fatal: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthority.<ValidateCredentials>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthentication.<ValidateCredentials>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.CredentialHelper.Program.<>c__DisplayClass38_1.<<Get>b__2>d.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.Alm.CredentialHelper.Program.Get()
at Microsoft.Alm.CredentialHelper.Program.Main(String[] args)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthority.<ValidateCredentials>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.GithubAuthentication.<ValidateCredentials>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.CredentialHelper.Program.<>c__DisplayClass38_1.<<Get>b__2>d.MoveNext()<---
Log Start (2015-12-02 13:48:46Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Store
targetUri = https://github.com/
Program::CreateAuthentication
detecting authority type
authority it GitHub
Log Start (2015-12-02 13:48:46Z)
Microsoft Git Credential Manager for Windows version Git Credential Manager for Windows
Program::Store
targetUri = https://github.com/
Program::CreateAuthentication
detecting authority type
authority it GitHub
Interesting. Looks like you're failing horridly with a (407) Proxy Authentication Required error message.
Any ideas about your proxy configuration?
See my comments above. I don't need any proxy config for normal git (beyond having the Forefront TMG client running). So I don't know much else.
The GCM relies on the Microsoft networking stack built into Windows. Git uses libcurl. The Microsoft stack honors OS configured proxy settings, libcurl does not.
I believe this is the difference you're seeing.
OK, so how would I set a username and password for the password? Or can GCM not do some variation of "copy the proxy settings that the browser uses"? I seem to remember there was something I could do in PowerShell to do that, but I don't have a code snippet available at the moment. When I get to my other PC I can see if I have a copy there.
GCM should get the "copy the proxy settings that the browser uses", as I understand it.
Does the user running the process have access to the proxy in question?
To the extent that I am the user in question, I log onto Windows and can start up my browsers (Chrome or Internet Explorer) and browse the web without needing to supply any additional proxy credentials. If I then open up a Powershell window and try to use git, I get this error from GCM.
As a test, I used Invoke-WebRequest from Powershell and got the same error. Specifying a proxy (via -Proxy http://blah.blah:NN -ProxyUseDefaultCredentials) worked.
Are there settings I should use in GCM to specify the proxy?
From what I've been able to find on the web, it _sounds_ like I should be able to create a git-credential-manager.exe.config file alongside the exe, containing
<configuration>
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy proxyaddress="http://...proxy name and port..."/>
</defaultProxy>
</system.net>
</configuration>
But it's not working. Is this the correct approach? I don't know anything about .net web configuration files, I'm going off what I can find via Google but most of the information seems to assume you are a .net developer and know more than I do :-(
@pfmoore Honestly, I am not sure. .NET has all kinds of "interesting" tricks like the one you reference.
I'll ask around and see what I can come up with.
Thanks for your patience and my apologies that things are not "just working(tm)" for you.
No problem, I appreciate the help. If there isn't an existing way of configuring things, would it be possible to add a git config option that I could set and the code would use to configure the proxy? Something like git config credential.proxy http://blah.blah:99?
@pfmoore I like that idea.
I'll investigate it more.
Thanks!
Same issue here. Git throws the "Fatal: AggregateException encountered.".
Workaround for me was installing the old version from https://gitcredentialstore.codeplex.com/
should be resolved by https://github.com/Microsoft/Git-Credential-Manager-for-Windows/pull/135
Cool. Is there a binary version available? If so, I'll test it fixes the issue for me (otherwise, I'll wait till the release to confirm this problem is resolved).
Is there a binary version available?
Soon, very soon. I need to perform some additional testing, then get the setup executable signed. Then, you'll have a handy pre-built. Otherwise, feel free to compile and test on your own. :smile:
Just noticed that a new release has been published, so I tried that (sorry I wasn't able to test before, I don't have the means to compile my own copy). Unfortunately, the new behaviour is even worse :-( Now, it prompts me for credentials for my proxy (it shouldn't - the default credentials should work fine) and when I enter what I think are the correct proxy credentials (I say "I think" because we use a PKI infrastructure that means I sign in with a smart card, and not with actual login credentials) I still get the same Fatal: AggregateException encountered. error :-( It's possible I have the wrong credentials but that's the point of wanting the system default settings to be used. If I have to remember and type in proxy credentials, I might as well remember and type in my github ones...
@pfmoore well that's not what I'd hoped. My apologies.
Unfortunately, I'm not able to reproduce your issue locally. We use smart cards as well and there is no issue for me. Next step is unwind that AggregateException into something meaningful.
No problem - I can understand the difficulty if you can't reproduce. Let me know if there's anything you want me to test for you.
Hmm, I just did another check and this time it didn't prompt for proxy credentials. I checked and it seems to have added a git:... credential to the vault for the proxy - as if it thought the proxy URL was my git URL. The credential.log file shows that it then failed with (407) Proxy Authentication Required. (and I've now retried my credentials and I'm pretty certain I didn't mistype the proxy credentials).
For what it's worth (and I'm sure you know this) Powershell doesn't work with the proxy by default, but I can get it to work by doing:
$browser = New-Object System.Net.WebClient
$browser.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
Whether that helps, I don't know.
oh - default network credentials is "Windows speak" for <empty>:<empty>@<url>.
Have you tried using credential.<url>.authority integrated?
What <url> would I use that on? The proxy one? I'll give it a try when I'm in work tomorrow, but in theory I don't know my proxy URL (it's auto-configured and could change at the whim of central IT) so I'd rather hot hard-code it if not necessary. In practice, I can get my proxy URL from the credential.log file.
But I'm a bit confused - the FAQ that mentions this (which is about TFS, about which I know nothing) seems to be talking about forwarding domain credentials to the git server. That's not what I need here. I need to tell the proxy to use the default credentials, but then get my github credentials from the certificate store.
I just tried git config --global credential.proxy-uk.glb.my-it-solutions.net.integrated true but that didn't help.
I still get the password prompt, and I now have an entry for git:http://proxy-uk.glb.my-it-solutions.net:84 in my credential store. I then get a prompt for my git credentials, but get Fatal: AggregateException encountered. then another prompt, then it falls back to asking me for my git credentials on the command line. The credentials.log file says it's a (407) Proxy Authentication Required. error again.
OK, this is weird. I've set up a cntlm local proxy that _should_ act as a pure http proxy (none of this silly NTLM stuff as far as git can see :-)) I updated my config - the relevant bits are
[credential]
helper = manager
writelog = true
[http]
proxy = http://localhost:3128
And yet I'm _still_ getting the Fatal: AggregateException encountered. (and, bizarrely, the "Proxy authentication required" error in the log...)
I need to tell the proxy to use the default credentials
It's an oddity of Windows networking stack that when basic credentials are sent as
Just to confirm, this issue still exists with GCM 1.4.0
Just to confirm, this issue still exists with GCM 1.4.0
:disappointed:
Seems I'll need to find an expert here at Microsoft to see if we can find a resolution to this issue. Thanks for confirming that the issue persists.
With the new proxy fix, the new GitHub dialogs, and other general fixes - I'm going to close this issue in hopes that it is really fixed with v1.6.0
There's no release 1.6.0 that I can see, but I've just tested and this issue still exists with 1.5.0.
I don't see a "reopen" button. Can you reopen this please? For now I've reverted to the old wincred module with cntlm, which works perfectly for me...
FWIW, I'm on a standard home Win10 system (no proxies or firewalls), and see the same behavior. I'm prompted over and over for my credentials, after seeing the Fatal: ArgumentException encountered. message. I'm working in an HTTPS clone.
Just to let you know, at my office, I'm getting the same kind of issues for the last few days.
I'm prompted quite randomly to be honest.
If I can help in anyway, let me know what i can do !
Best thing anyone can do is
mkdir C:\.tracesetx GIT_TRACE C:\.trace\git.logsetx GCM_TRACE C:\.trace\git.logThis will cause both Git and GCM to log into the same file. Now, when these issues occur again we can look at the C:\.trace\git.log file and hopefully discover what is happening.
I'm afraid I've gone back to using the old wincred, because it just works without all these issues. I'm reluctant to try the new version as (IIRC) last time I did, it was messy to revert back to my original config because I didn't know what changes the install process had made.
Is there a completely manual install process (no install.bat or git-credential-manager install process) that I can use to temporarily try the new version?
Is there a completely manual install process (no install.bat or git-credential-manager install process) that I can use to temporarily try the new version?
All that is needed is for the binary contents of the .zip file to extracted into the C:\Program Files\Git\mingw64\libexec\git-core, or where ever you installed your Git to, and to add git config credential.helper manager to your local config.
Hmm. 1.7.0 seems to be working for me. Probably worth getting the others who reported they are getting the same issue to confirm 1.7.0 fixes it for them as well, but so far so good :-)
BTW, thanks for being persistent with this. I know what a pain it is dealing with an issue you can't reproduce yourself, so your work is appreciated.
Hmm. 1.7.0 seems to be working for me.
That's wonderful news!
BTW, thanks for being persistent with this. I know what a pain it is dealing with an issue you can't reproduce yourself, so your work is appreciated.
Absolutely. Thanks for sticking with it until resolved. 馃槃
I just installed the 1.7.0.
I'll tell you as soon as anything happens :)
Ok, so i just got prompted for the first time after i installed 1.7.0.
I'll tell you if i get prompted again.
I set up the logs as you said, in case of.
Just got prompted for the 2nd time today after i installed 1.7.0.
I also add the logs if you can understand anything.
If you need anything else, just tell me.
I'm completly lost in here :)
And as pfmoore said, it's amazingly cool to stick to this issue !
git.log.txt
@bxxfxxx I see the trace from GIT_TRACE being set, but not from GCM_TRACE being set.
The interesting bits would be here, but without the GCM logs I am at a loss. My apologies.
16:39:07.223713 git.c:348 trace: built-in: git 'fetch' 'origin'
16:39:07.320719 run-command.c:343 trace: run_command: 'git-remote-https' 'origin' 'https://[email protected]/isilis/collect.git'
16:39:08.095763 run-command.c:343 trace: run_command: 'git credential-manager get'
16:39:08.166767 git.c:561 trace: exec: 'git-credential-manager' 'get'
16:39:08.167767 run-command.c:343 trace: run_command: 'git-credential-manager' 'get'
16:39:09.108821 run-command.c:343 trace: run_command: 'git credential-manager store'
16:39:09.235828 git.c:561 trace: exec: 'git-credential-manager' 'store'
16:39:09.236828 run-command.c:343 trace: run_command: 'git-credential-manager' 'store'
rah. i was sure i set them. i'll do it again and let you read the logs if i'm prompted again.
though i didn't get prompt today. which is quite unusual (and appreciated ;)).
Ok. i mistyped the GCM_TRACE...
I just got prompted when i tried to push to remote.
Here are the logs from the last few minutes when i got prompted and after i reset he GCM_TRACE.
git.log.txt
Great, looks like the logs were captured. Now to make sense of them...
15:52:00.826181 git.c:348 trace: built-in: git 'push'
15:52:00.827181 run-command.c:343 trace: run_command: 'git-remote-https' 'origin' 'https://[email protected]/isilis/webfid.git'
15:52:01.657228 run-command.c:343 trace: run_command: 'git credential-manager get'
15:52:01.732233 git.c:561 trace: exec: 'git-credential-manager' 'get'
15:52:01.732233 run-command.c:343 trace: run_command: 'git-credential-manager' 'get'
15:52:01.778235 Program.cs:580 trace: [Main] git-credential-manager (v1.7.0) 'get'
15:52:01.811237 Configuration.cs:200 trace: [LoadGitConfiguration] git portable config read, 10 entries.
15:52:01.831238 Where.cs:255 trace: [FindGitInstallations] found 1 Git installation(s).
15:52:01.831238 Configuration.cs:216 trace: [LoadGitConfiguration] git global config read, 15 entries.
15:52:01.834238 Configuration.cs:224 trace: [LoadGitConfiguration] git local config read, 66 entries.
15:52:01.844239 Program.cs:300 trace: [CreateAuthentication] detecting authority type for 'https://bitbucket.org/'.
15:52:01.847239 GitHubAuthenticatio:131 trace: [GetAuthentication] not github.com, authentication creation aborted.
15:52:01.847239 Program.cs:349 trace: [CreateAuthentication] authority for 'https://bitbucket.org/' is basic.
15:52:13.980933 Program.cs:1105 trace: [ModalPromptDisplayDialog] successfully acquired credentials from user.
15:52:13.980933 Program.cs:886 trace: [QueryCredentials] credentials for 'https://bitbucket.org/' found.
15:52:04.356383 git.c:348 trace: built-in: git 'rev-parse' 'HEAD'
15:52:04.389385 git.c:348 trace: built-in: git 'branch'
15:52:14.497963 run-command.c:343 trace: run_command: 'git credential-manager store'
15:52:14.559966 git.c:561 trace: exec: 'git-credential-manager' 'store'
15:52:14.560966 run-command.c:343 trace: run_command: 'git-credential-manager' 'store'
15:52:14.611969 Program.cs:580 trace: [Main] git-credential-manager (v1.7.0) 'store'
15:52:14.650971 Configuration.cs:200 trace: [LoadGitConfiguration] git portable config read, 10 entries.
15:52:14.670973 Where.cs:255 trace: [FindGitInstallations] found 1 Git installation(s).
15:52:14.671973 Configuration.cs:216 trace: [LoadGitConfiguration] git global config read, 15 entries.
15:52:14.674973 Configuration.cs:224 trace: [LoadGitConfiguration] git local config read, 66 entries.
15:52:14.683973 Program.cs:300 trace: [CreateAuthentication] detecting authority type for 'https://bitbucket.org/'.
15:52:14.685973 GitHubAuthenticatio:131 trace: [GetAuthentication] not github.com, authentication creation aborted.
15:52:14.685973 Program.cs:349 trace: [CreateAuthentication] authority for 'https://bitbucket.org/' is basic.
15:52:14.689974 BaseSecureStore.cs:204 trace: [WriteCredential] credentials for 'git:https://bitbucket.org' written to store.
This particular sequence is unexpected. I'll need to look at why it is doing this "hey it's GitHub, oh wait no it isn't; better ask the user what to do..." routine.
15:52:01.847239 GitHubAuthenticatio:131 trace: [GetAuthentication] not github.com, authentication creation aborted.
15:52:01.847239 Program.cs:349 trace: [CreateAuthentication] authority for 'https://bitbucket.org/' is basic.
15:52:13.980933 Program.cs:1105 trace: [ModalPromptDisplayDialog] successfully acquired credentials from user.
Haha, i don't get anything in here.
But please don't spend too much time on this if it's not useful to anyone else.
I just intended to help fix a bug, if any bug there is.
I can live with a few prompts a day!
I know github changed their login policy recently. I used to have a username and password and now i'm using mail and password.
Maybe there is something in there ?
Old value still somwhere on my computer that prevents the new login values to work properly ?
Just a random guess in here.
Old value still somwhere on my computer that prevents the new login values to work properly ?
It is possible, I suppose; but the GCM should overwrite the old value. Additionally, I'd expect to see the git request credential erasure if the credentials failed, but it looks like they didn't even exist to begin with.
You can review the credentials stored on your machine by looking at the Windows Credential Manager. You can find it by clicking on Start then typing "credential" into the search box (with Windows 10 the textbox is hidden, but typing still works), and then clicking on the 'Credential Manager' icon.
In the credential manager, click on the 'Windows Credentials` tab and you'll see a all of the credentials stored. Credentials stored by the GCM generally begin with "git:https://".
Here's a redacted view of my Windows Credential Manager (redacted for obvious reasons):

Yeah, found them.
Everything seems good.
And the last update was yesterday.

Hum, I think I found something.
I'm using sourcetree and i think sourcetree has some kind of project credential management.
Every project i got in sourcetree has it's own settings pointing to my bitbucket repo with my former username :

I just updated every entry and i'll let you know if that solves the prompting problem !
@bxxfxxx are your credentials valid for every repo on bitbucket.org, regardless of the path?
If not, you might consider setting the GCM's useHttpPath configuration value to true.
In my case, I'm just trying to push to GitHub. My log looks pretty boring:
00:08:09.197974 git.c:350 trace: built-in: git 'push'
00:08:09.197974 run-command.c:336 trace: run_command: 'git-remote-https' 'origin' 'https://github.com/hollasch/codare.git'
00:08:09.879102 run-command.c:336 trace: run_command: 'git credential-manager get'
00:08:09.929745 git.c:564 trace: exec: 'git-credential-manager' 'get'
00:08:09.929745 run-command.c:336 trace: run_command: 'git-credential-manager' 'get'
00:08:10.046176 run-command.c:336 trace: run_command: 'bash' '-c' 'cat >/dev/tty && read -r line </dev/tty && echo "$line"'
00:08:12.951981 run-command.c:336 trace: run_command: 'bash' '-c' 'cat >/dev/tty && read -r -s line </dev/tty && echo "$line" && echo >/dev/tty'
00:08:18.148616 run-command.c:336 trace: run_command: 'git credential-manager store'
00:08:18.195492 git.c:564 trace: exec: 'git-credential-manager' 'store'
00:08:18.195492 run-command.c:336 trace: run_command: 'git-credential-manager' 'store'
My output on the command line looks like this:
C:\Users\Steve\OneDrive\srh\dev\win\pub\codare > git push
Fatal: ArgumentException encountered.
Username for 'https://github.com': hollasch
Password for 'https://[email protected]':
Fatal: ArgumentException encountered.
Everything up-to-date
Yes, i updated all my credentials but i'll set useHttpPath to true :)
Thx for everything !
Odd. Looking at my Windows Credential Manager, my username for git:https://github.com was "Personal Access Token" (or something like that). I edited it to change it to my userid (hollasch), but no joy. Then removed the credential to see if GCM would recreate it when I entered it from the command line, but a new credential never showed up.
Sorry; never mind! I was running 1.6.1. Installed 1.7.0, and everything's working great now!
I ran into this problem when I renamed my computer. I also had 2 factor authentication mode on. Then I just requested a new token and everything went fine: https://confluence.atlassian.com/sourcetreekb/two-factor-authentication-2fa-with-github-in-sourcetree-402033499.html
I seem to be experiencing this issue. GCM is storing my credentials (I can see them in Windows' Credentials Manager) but I get a HttpRequestException and a credentials prompt whenever I try and do anything. wincred seems to work.
$ git --version
git version 2.20.1.windows.1
$ git config --global -l
credential.helper=manager
$ git credential-manager version
Git Credential Manager for Windows version 1.18.4
$ git pull
12:12:22.908299 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
12:12:22.911290 git.c:418 trace: built-in: git pull
12:12:22.914282 run-command.c:643 trace: run_command: git fetch --update-head-ok
12:12:22.928244 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:12:22.931236 git.c:418 trace: built-in: git fetch --update-head-ok
12:12:22.937221 run-command.c:643 trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/sjmorgan81/Core.git
12:12:22.952180 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:12:22.954174 git.c:675 trace: exec: git-remote-https origin https://github.com/sjmorgan81/Core.git
12:12:22.955172 run-command.c:643 trace: run_command: git-remote-https origin https://github.com/sjmorgan81/Core.git
12:12:22.971130 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:12:23.924392 run-command.c:643 trace: run_command: 'git credential-manager get'
12:12:23.998106 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:12:24.001120 git.c:675 trace: exec: git-credential-manager get
12:12:24.001120 run-command.c:643 trace: run_command: git-credential-manager get
12:12:24.087894 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.4) 'get'
12:12:24.167680 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).
12:12:24.174628 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 89 entries.
12:12:24.238490 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for 'https://github.com/'.
12:12:24.255411 ...uthentication.cs:151 trace: [GetAuthentication] created GitHub authentication for 'https://github.com/'.
12:12:24.256409 ...\Common.cs:176 trace: [CreateAuthentication] authority for 'https://github.com/' is GitHub.
12:12:24.256409 ...\Common.cs:765 trace: [QueryCredentials] querying 'GitHub' for credentials.
12:12:24.264387 ...uthentication.cs:175 trace: [GetCredentials] credentials for 'https://github.com/' found.
12:12:24.378082 ...\Program.cs:601 trace: [Run] ! error: 'An error occurred while sending the request.'.
12:12:24.378082 ...\Program.cs:601 trace: [Run] > 'The remote server returned an error: (407) Proxy Authentication Required.'.
12:12:24.384098 ...\Common.cs:709 trace: [LogEvent] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Authentication.Network.<>c__DisplayClass4_0.<<HttpGetAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at GitHub.Authentication.Authority.<ValidateCredentials>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at GitHub.Authentication.Authentication.<ValidateCredentials>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Cli.CommonFunctions.<QueryCredentials>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Cli.Program.<<Get>b__24_0>d.MoveNext()
12:12:24.386061 ...\Program.cs:601 trace: [Run] fatal: HttpRequestException encountered.
An error occurred while sending the request.
fatal: HttpRequestException encountered.
An error occurred while sending the request.
12:12:24.417975 run-command.c:643 trace: run_command: bash -c 'test "a$SHELL" '\!'= "a${SHELL%.exe}" || exit 127; cat >/dev/tty && read -r line </dev/tty && echo "$line"'
Username for 'https://github.com':
See this line
12:12:24.378082 ...\Program.cs:601 trace: [Run] > 'The remote server returned an error: (407) Proxy Authentication Required.'.
@jeschu1 to explain how to configure proxy credentials (I no longer work on this project and things have changed, so I am not a good person to explain how to use it any longer).
@sjmorgan81 have you set the git config parameter http.proxy
https://git-scm.com/docs/git-config#git-config-httpproxy
Note it should be in the form:
Most helpful comment
Hmm. 1.7.0 seems to be working for me. Probably worth getting the others who reported they are getting the same issue to confirm 1.7.0 fixes it for them as well, but so far so good :-)
BTW, thanks for being persistent with this. I know what a pain it is dealing with an issue you can't reproduce yourself, so your work is appreciated.