gpt4 book ai didi

Visual Studio 2015 的 github 扩展失去连接

转载 作者:行者123 更新时间:2023-12-02 04:59:02 25 4
gpt4 key购买 nike

我偶尔会收到此错误。这真的很烦人,因为有时它会自行修复,但大多数情况下我只需关闭 VS 并重新打开,然后它就会再次工作一段时间。

当我尝试从分支(或任何其他 git 网络交互)中拉取时,就会发生这种情况。

Error encountered while fetching: An error occurred while sending the request.

Inner Exception:
The remote name could not be resolved: 'github.com'
  1. 有时它会在一段未知的时间后自行修复。
  2. 有时我在那段时间什么也不做。
  3. 有时我会点击周围并查看其他分支并执行拉取请求,然后它会再次起作用。
  4. 大多数情况下,我必须重新启动 VS 才能使其再次工作。

还有其他人遇到过这个问题吗?你是怎么解决的?

我还使用双因素身份验证。如果这是问题所在。 (看来不是问题)

有时启动 VS 时我也会收到此错误:

We were unable to automatically populate your Visual Studio Team Services accounts.

The following error was encountered: TF400813:
Resource not available for anonymous access. Client authentication required.

因此,也许 github.com 身份验证在交互过程中的某个时刻丢失了,重新启动 VS 即可修复它。

另一个线索是,当无法访问 github.com 时,就无法在 Visual Studio 的浏览器中浏览到它。它可以在 Chrome(或 FireFox 或 IE)中正常浏览。 Visual Studio 似乎也会偶尔失去与 nuget.org 的连接,效果似乎是相同的。

可能的相关问题: Visual Studio/C#: Nuget Unable to connect to remote server

更新:这种情况发生在两个不同的 ISP 上,其中一个不在公司防火墙上(这排除了网络问题)。当问题发生时,它实际上会关闭 Visual Studio 内的所有网络通信,因此这不仅仅是 github.com 的问题。我已经向 Microsoft 开出了一张票,希望我们能解决这个问题,我可以将答案发布给大家。

最佳答案

经过微软的支持和 VS 2017 的发布。

答案是升级!

关于Visual Studio 2015 的 github 扩展失去连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39129434/

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