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

发布于 2025-01-27 01:40:25 字数 509 浏览 3 评论 0原文

我创建了一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

能怎样 2025-02-03 01:40:25

感谢@Dan解决这个问题,

我们的IT团队通过更改代理设置来解决此问题。

使用公司的系统/VPN时,我们可能会在浏览器或代码编辑器等互联网中访问Internet的API时遇到一些问题。

当您使用VS代码中的Azure函数时,我发现很少有有用的文档可以更好地了解这些问题:

Thanks @Dan for solving the issue,

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

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文