gpt4 book ai didi

Git 命令失败 HttpRequestException

转载 作者:IT王子 更新时间:2023-10-29 00:37:41 30 4
gpt4 key购买 nike

我在针对 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)

最佳答案

根据 this issue在 Git Credential Manager 问题跟踪器和我今天早上的经验中,出现了一个 HttpRequestException 错误,但异常是 System.ObjectDisposedException: Cannot access a closed file with a repository that was previously工作可能是由于存储库主机按要求推出 TLS 1.2,并且您使用的是 1.14.0 之前的 Git 凭据管理器版本(包含在 Git for Windows v2.16.2 中)。

要解决,更新到 Git for Windows v2.16.2 或更新版本。

为了直接解决 iagowp,如果这是托管在 Github 上的存储库,他们开始 force TLS 1.2 as of 19:00 UTC on the 22nd of Feb .

关于Git 命令失败 HttpRequestException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43057820/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com