相关疑难解决方法(0)

"致命:遇到HttpRequestException." 由于删除了TLS-1.0支持,GitHub/Bitbucket存储库出错

问题

当我推送到GitHub仓库时,我最近遇到以下消息:

"fatal: HttpRequestException encountered. " 然后再次提示输入我的用户名和密码.

从以前的搜索中,Visual Studio其他各种搜索具有相同的根问题.对于那些比我更懒的人来说,不同应用程序/操作系统的各种解决方案的摘要在这里进行了相关的讨论.希望人们觉得这很有帮助.

原因

无法真正将更新服务称为问题,所以这就是原因.问题是GitHub已经删除了TLS-1.0支持,这导致了客户端的问题,包括Microsoft Visual Studio内置的git客户端,Git版本低于1.14以及GUI客户端包括tortoiseGit等.完整的发行说明可以在这里找到: https://githubengineering.com/crypto-removal-notice/

Bitbucket将从2018年12月1日开始下降TLSv1.0和TLSv1.1.我预计会遇到类似的问题.

编辑:将我的自我答案移至答案框.见下文.

git github bitbucket tls1.2 tls1.0

34
推荐指数
3
解决办法
2万
查看次数

Git失败了>致命错误.无法读取用户名

我几天来一直在努力解决这个问题.

我无法从特定的计算机连接到我的Git项目(存储在VisualStudio.com中)(它可以在我的第二台PC上运行).每当我尝试同步或克隆我的存储库时,VS2017会询问我的用户凭据(两次),并且我收到以下错误:

错误:无法生成askpass:没有此类文件或目录克隆远程存储库时遇到错误:Git失败并出现致命错误.无法读取"https://.visualstudio.com"的用户名:终端提示已禁用

不记得我是否改变了任何可能导致这种情况的事情......

git visual-studio azure-devops visual-studio-2017

17
推荐指数
3
解决办法
2万
查看次数

Git命令失败HttpRequestException

我在针对Microsoft Team Foundation Cloud Service运行的Windows Server 2012 R2上运行Git版本2.12.1.无论我运行什么Git命令,我都会遇到同样的错误.我甚至完全打开我的防火墙,看看是不是导致它,但无济于事.我尝试过Clone,Push和Pull,它们都返回了这个错误.

git clone https://myaccount.visualstudio.com/_git/myProject
Cloning into 'myProject'...
fatal: HttpRequestException encountered.
   An error occurred while sending the request.

Unhandled Exception: System.ObjectDisposedException: Cannot access a closed file.
   at System.IO.__Error.FileNotOpen()
   at System.IO.FileStream.Flush(Boolean flushToDisk)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at Microsoft.Alm.Git.Trace.Microsoft.Alm.Git.ITrace.Flush()
   at Microsoft.Alm.Cli.Program.Die(String message)
   at Microsoft.Alm.Cli.Program.Die(Exception exception)
   at Microsoft.Alm.Cli.Program.Main(String[] args)
Run Code Online (Sandbox Code Playgroud)

git azure-devops

14
推荐指数
2
解决办法
3880
查看次数