我在工作时尝试在 Visual Studio 2017 中的 Team Foundation Serer 上同步团队项目时出现此错误
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
有什么想法吗?
最佳答案
检查您是否设置了 Windows 环境变量 HTTP_PROXY 和 HTTPS_PROXY。如果设置了它们,请确保将架构(http 和 https)写在那里。如果您修改该变量,请重新启动终端并重试。
我遇到了同样的问题,我就是这样解决的。
关于git - ServicePointManager 不支持 net4bsl.bsl.co.uk 方案的代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53599070/