azure - 在调试对 Azure 组件具有内部依赖性的项目时,我收到与分区 id 相关的错误

标签 azure azureservicebus partition azure-eventhub

错误指出:“用户未处理的异常 Microsoft.Azure.EventHubs.Processor.EventProcessorConfigurationException:“获取 EventHub Partitionid 列表时遇到错误” 内部异常 SocketException:连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接的主机未能响应而建立的连接失败。

在清除缓存并重新启动笔记本电脑后,我第一次没有收到此异常。帖子也出现同样的问题。有什么办法可以检查吗?

最佳答案

解决此问题Exception User-Unhandled Microsoft.Azure.EventHubs.Processor.EventProcessorConfigurationException: 'Encountered error while fetching the list of EventHub Partitionids' Inner Exception SocketException: A connection attempt failed because the connected party did not properly respond after a va period of time, or established connection failed because connected host has failed to respond."错误,请尝试以下方法:

根据MayankBargali的建议,检查所需端口是否开放。

  • 确保打开端口 443/5671/5672
  • 您可以使用PortQry tool查询这些端口上的 eventhub 命名空间,以确认这些端口是否被阻止。

引用文献:Microsoft.Azure.EventHubs.Processor: Encountered error while fetching the list of EventHub PartitionIdsIn Azure Eventhub reciever giving "Encountered error while fetching the list of EventHub PartitionIds" error

关于azure - 在调试对 Azure 组件具有内部依赖性的项目时,我收到与分区 id 相关的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72645011/

相关文章:

sql-server - 我是否需要对 Azure 虚拟机上的 SQL Server 使用连接重试

vb.net - Azure 服务总线 - PeekBatchAsync 返回的消息少于预期

hive - 从非分区表创建分区配置单元表

azure - 配置kubectl命令访问azure上的远程kubernetes集群

c# - 通过 C# .NET Framework 托管数据工厂将数据从 Blob 复制到 Azure SQL 时忽略坏行

Azure Function 使用 Windows 身份验证进行本地 SQL DB

c# - 当锁定持续时间尚未过去时,Azure 服务总线对非分区队列抛出 MessageLockLostException

azure - 通过 Powershell 或 API 扩展 Azure 服务总线

apache-kafka - 我可以删除 Kafka 分区版本 0.10.0.1