Azure 服务总线 - 消息通信异常 channel 打开超时

标签 azure azureservicebus azure-servicebus-queues

我是 Azure 服务总线的新手。

我正在尝试将消息添加到 Azure 服务总线队列,如下所示

var message = new BrokeredMessage() { Label = inputFileEntity.FileName };                
message.MessageId = new Guid().ToString();
message.Properties.Add("FilePath", inputFileEntity.FilePath);

// submit the file for injector
QueueConnector.InputFileQueueClient.Send(message);

我收到如下消息通信异常

Channel Open did not complete within the specified timeout of 00:01:00

当我初始化 QueueClient 时,我什至将操作超时值配置为 10 分钟,仍然是同样的问题

 var namespaceManager = CreateNamespaceManager();
 namespaceManager.Settings.OperationTimeout = new TimeSpan(0, 10, 0);

如果我出错了,任何方向或指示都会有很大帮助。

最佳答案

这通常表明存在网络问题,因为防火墙可能会阻止所需 TCP 端口上的出站通信。您还可以将连接模式设置为 http 并通过端口 80 发送流量。

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;

关于Azure 服务总线 - 消息通信异常 channel 打开超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22039424/

相关文章:

javascript - Azure服务总线队列使用nodejs读取批量消息

azure - 数据工厂从 parquet 读取 boolean 值到 SQL Server

java - 如何检查 Azure 中应用程序网关的运行状况

azure - 如何为Azure中托管的网站安装SSL?

Azure 服务总线实体吞吐量

node.js - Azure Function Service Bus - 托管标识 - 服务总线帐户连接字符串

azure - Service Fabric 单例服务在扩展时是否会出现停机?

wcf - WCF 端点中的同一 Windows 服务器服务总线命名空间中有两个不同的主题

azure - 延迟接收 Azure ServiceBus 主题上的消息

Azure 服务总线和长处理消息