Visual Studio 代码 - 本地调试 - SSL - 连接被远程主机强行关闭

Visual Studio Code - Local Debugging - SSL - Connection Forcibly Closed By Remote Host

我创建了一个 Azure 函数。 由于代理/防火墙策略,获取 Azure Core Tools 等组件一直是一场战斗。 在本地调试一个基本示例时,例如 Azure 的默认 HTTP 触发器未更改,虚拟环境启动并且命令 func host start 运行。 此时它找到 Python,运行 pip 安装,然后出错。

看起来像是 Proxy 问题,但已经解决了,有没有人在本地调试 Azure Function 时遇到过以下错误?

System.Net.Http:无法建立SSL连接,见内部异常。 System.Net.Sockets: 无法读取 data from the transport connection: An existing connection was forced by the remote host.. 现有连接被远程主机强行关闭。 值不能为空。 (参数'provider')

编辑:在没有希望之后,我查看了 Internet 选项并更改为“使用 SSL 3.0”。 现在错误没有出现,而是我得到以下信息;

System.IO.Compression: 找不到中央目录记录的末尾。 值不能为空。 (参数'provider')

谢谢, 旦

感谢@Dan 解决问题,

Our IT team have managed to fix this by changing Proxy settings.

使用公司的 System/VPN 时,我们在通过浏览器或代码编辑器等访问 Internet 中的 API 时可能会遇到一些问题

当您在 VS Code 中使用 Azure Functions 时,我发现了一些有助于更好地理解问题的文档: