Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't push git, visual studio. Git failed with a fatal error. fatal: HttpRequestException encountered

Here is my error on visual studio. I can't figure out if there is a config to fix this. Additionally I am restricted from installing git command line tools.

Error encountered while pushing to the remote repository: Git failed with a fatal error. fatal: HttpRequestException encountered.    An error occurred while sending the request. error: cannot spawn askpass: No such file or directory fatal: could not read Username for 'https://github.com': terminal prompts disabled 
like image 508
Zaldimmar Avatar asked Feb 23 '18 22:02

Zaldimmar


1 Answers

Cause: GitHub updated their security requirements on the server side. They no longer support TLS 1.0 and 1.1, only 1.2. Older Git Credential Manager for Windows versions used 1.0.

Solution: Update Git for Windows. Version 2.14.3 and newer include an up-to-date Git Credential Manager for Windows.

Alternatively you can update only the Git Credential Manager for Windows itself. It supports TLS 1.2 from version 1.14.0 onwards.

like image 197
Daedalon Avatar answered Oct 09 '22 02:10

Daedalon