【问题标题】:The ServicePointManager does not support proxies with the net4bsl.bsl.co.uk schemeServicePointManager 不支持使用 net4bsl.bsl.co.uk 方案的代理
【发布时间】:2019-05-05 01:27:45
【问题描述】:

我在工作中尝试在 Visual Studio 2017 中的团队基础服务器上同步团队项目时收到此错误

Git failed with a fatal error.

NotSupportedException encountered.

   The ServicePointManager does not support proxies with the net4bsl.bsl.co.uk scheme.

cannot spawn /c/program files (x86)/microsoft visual studio/2017/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory

could not read Username for 'https://ams-british-steel.visualstudio.com': terminal prompts disabled

这是我配置的代理

git config --global http.proxy net4bsl.bsl.co.uk:8080

有什么想法吗?

【问题讨论】:

    标签: git visual-studio tfs azure-devops


    【解决方案1】:

    检查您是否设置了 Windows 环境变量 HTTP_PROXY 和 HTTPS_PROXY。如果已设置,请确保将架构(http 和 https)写入那里。如果您修改该变量,请重新启动终端并重试。

    我遇到了同样的问题,我用这种方法解决了。

    【讨论】:

    • 非常感谢,我的环境变量搞砸了代理,从而导致了这个错误。我必须修复它们。
    • 我遇到了这个问题,结果发现我将 HTTPS_PROXY 环境变量设置为“https://[my proxy url]”。将其更改为“http://...”可以解决问题。某人。
    【解决方案2】:

    您没有输入有效的 URI 方案,例如 http://。尝试将http:// 放在代理地址的前面。

    【讨论】:

    • 谢谢,但即使我使用 git config --global http.proxy http://net4bsl.bsl.co.uk:8080 也会出现同样的错误
    • 请参阅gist.github.com/evantoli/f8c23a37eb3558ab8765,了解如何配置代理。并且:也许全局配置被另一个(用户或仓库)配置“覆盖”,请检查这个...
    猜你喜欢
    • 2010-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-04
    • 2016-06-14
    相关资源
    最近更新 更多