【发布时间】:2020-06-10 06:53:14
【问题描述】:
几周以来我们一直在使用 Azure KeyVault,上周我们突然有一些服务失败并出现以下错误消息:
System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
有趣的是,我们在同一台服务器上运行了多个 Web 应用程序。对某些人来说它有效,而对某些人则无效。此外,它在一段时间内对所有人都有效。有些回来了,有些没有。
知道这可能是什么吗?我不认为我们的 IP 被阻止或未配置 WebSocket,否则它不适用于所有应用程序。唯一的区别是当前工作的应用程序是 .NET 和非工作的应用程序 .NET Core。但正如我所说,即使是 .NET Core 也可以工作到周五。所有服务都获得相同的秘密(例如相同的数据库登录数据)并且每个都在 Azure 上运行。
我看过其他一些关于这个问题的帖子,但唯一的解决方案是他们在其上构建了一个缓存层。这似乎更像是一个创可贴,而不是一个解决方案。
【问题讨论】:
标签: asp.net azure asp.net-core azure-keyvault