Visual Studio代码 - 本地调试 - SSL-连接由远程主机强行关闭
我创建了一个Azure功能。 由于代理 /防火墙政策,获取诸如Azure Core工具之类的组件一直是一场战斗。 当在本地调试一个基本示例时,实例Azures默认的HTTP触发了未改变的虚拟环境,命令func主机start
运行。 在这一点上,它找到了Python,运行PIP安装,然后出错。
它看起来像是一个代理问题,但是已经打开了,在本地调试Azure功能时,是否有人在以下错误方面有任何经验?
System.net.http:无法建立SSL连接,请参见内部异常。 System.net.sockets:无法阅读 来自运输连接的数据:现有连接被远程主机强行关闭。现有连接被远程主机强行关闭。 值不能为null。 (参数'Provider')
编辑:在没有希望之后,我可以看一下Internet选项,然后更改为“使用SSL 3.0”。 现在,错误没有出现,而是我得到以下内容;
system.io.compression:找不到中央目录记录的结尾。 值不能为null。 (参数“提供者”)
谢谢, 担
I've created an Azure function.
Getting the components such as Azure Core Tools has been a battle due to the proxy / firewall policies.
When debugging locally a basic example for instance Azures default HTTP Trigger unaltered the Virtual Environment spins up and the command func host start
runs.
At this point it finds Python, runs a pip install, then errors out.
It looks like a Proxy issue, but that's been opened up, has anyone had any experience with the below error when locally debugging an Azure Function?
System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Sockets: Unable to read
data from the transport connection: An existing connection was forcibly closed by the remote host.. An existing connection was forcibly closed by the remote host.
Value cannot be null. (Parameter 'provider')
Edit: After having no hope I had a look in Internet Options and changed to "Use SSL 3.0".
Now the error doesn't come up, instead I get the following;
System.IO.Compression: End of Central Directory record could not be found.
Value cannot be null. (Parameter 'provider')
Thanks,
Dan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢@Dan解决这个问题,
使用公司的系统/VPN时,我们可能会在浏览器或代码编辑器等互联网中访问Internet的API时遇到一些问题。
当您使用VS代码中的Azure函数时,我发现很少有有用的文档可以更好地了解这些问题:
Thanks @Dan for solving the issue,
When using the Company's System/VPN, we may face some issues while accessing the APIs in internet from browser or Code Editors, etc.
As You're using the Azure Functions in VS Code, I found few helpful documents to understand the issues better: