我有一个连接到服务总线队列的 Azure App Service API。有一段时间一切都完美无缺,但后来我开始遇到这些错误:System.AggregateException: One or more errors occurred. (Unknown error (0xffffffff) ErrorCode: SocketError) ---> Microsoft.Azure.ServiceBus.ServiceBusCommunicationException: Unknown error (0xffffffff) ErrorCode: SocketError ---> System.Net.Sockets.SocketException: Unknown error (0xffffffff) at Microsoft.Azure.ServiceBus.ServiceBusConnection.CreateConnectionAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.FaultTolerantAmqpObject`1.OnCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton`1.GetOrCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton`1.GetOrCreateAsync(TimeSpan timeout) at Microsoft.Azure.ServiceBus.Amqp.AmqpLinkCreator.CreateAndOpenAmqpLinkAsync() at Microsoft.Azure.ServiceBus.Core.MessageSender.CreateLinkAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.FaultTolerantAmqpObject`1.OnCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton`1.GetOrCreateAsync(TimeSpan timeout) at Microsoft.Azure.Amqp.Singleton`1.GetOrCreateAsync(TimeSpan timeout) at Microsoft.Azure.ServiceBus.Core.MessageSender.OnSendAsync(IList`1 messageList) --- End of inner exception stack trace --- at Microsoft.Azure.ServiceBus.Core.MessageSender.OnSendAsync(IList`1 messageList) at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout) at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout) at Microsoft.Azure.ServiceBus.Core.MessageSender.SendAsync(IList`1 messageList) public async Task SendAsync(string message) { var queueMessage = new Message(Encoding.ASCII.GetBytes(message)); var queueClient = GetQueueClient("myqueue"); await queueClient.SendAsync(queueMessage); }我认为这不是超出配额的问题,也没有说超时。关于如何调试这个的任何想法?
2 回答
幕布斯7119047
TA贡献1794条经验 获得超8个赞
我自己昨天才开始得到很多这些:
Microsoft.ServiceBus: 未知错误 (0xffffffff)
和
无法连接到 net.tcp://some-namespace.servicebus.windows.net:9354/。连接尝试持续了 00:00:00 的时间跨度。TCP 错误代码 -1:未知错误 (0xffffffff)。
如您所见,连接尝试直接失败。
几个月来一直工作正常,然后砰……我猜微软又做了什么。他们的 Azure Status 板全是绿色,但我的函数有 60% 的失败率。
- 2 回答
- 0 关注
- 192 浏览
添加回答
举报
0/150
提交
取消