错误指出:“用户未处理的异常 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 PartitionIds和 In Azure Eventhub reciever giving "Encountered error while fetching the list of EventHub PartitionIds" error
关于azure - 在调试对 Azure 组件具有内部依赖性的项目时,我收到与分区 id 相关的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72645011/