I am getting an error in my VS 2017 Team Explorer whenever I pull/fetch or push.
Git failed with a fatal error.
HttpRequestException encountered.
An error occurred while sending the request.
cannot spawn /C/Program Files/Git/mingw64/libexec/git-core/git-askpass.exe: No error
could not read Password for 'https://<myusername>@bitbucket.org': terminal prompts disabled.
I tried to set my password by indicating:
https://<myusername>:<mypassword>@bitbucket.org
Still not fixed. But when I used SourceTree, it is fine.
How can I fix this so I can able to use VS Team Explorer again for pull/push?
I am using the following:
Thanks in advance.
Same here, I do believe it's from bitbucket side.
the following worked for us :
Remove git related Credentials stored in Windows Credentials in >>Control Panel\All Control Panel Items\Credential Manager
link to SO here
then use this command :
git remote set-url origin https://name:[email protected]/repo.git
here is the source for this one
There is a problem in Git for Windows and Microsoft is monitoring the solution to release a new version of VS with the patch.
https://developercommunity.visualstudio.com/content/problem/266473/sync-commit-git-failed-with-a-fatal-error.html
----- Finally I resolved with these steps --------------
1) delete credentials in the Credential Manager
2) rename or delete the Git directory in "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer"
3) install the package "https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.0"
4) when VS asks for the BitBucket credential insert them
Only these sequence worked for me.
Bitbucket's Authenticator is currenty failing. There is an open issue about it. https://bitbucket.org/site/master/issues/16892/cannot-fetch-or-push-using-visual-studio
If you can take the risk of pure username:password format using for temporarily, it will solve the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With