ServiceBusError:InvalidOperationError:无法创建消息浏览器

问题描述 投票:0回答:1

请帮忙解决以下问题:

服务总线错误:

InvalidOperationError: Cannot create a message browser on an entity with auto-forwarding enabled. Reference:26xxxx0b, TrackingId:baxxxxxB12, SystemTracker:spxxxxod:Topic:vexxxxic|asr, Timestamp:2024-06-14T06:11:02 Reference:cexxxxxxcb, TrackingId:48

欢迎所有建议!

我尝试使用

"Peek from start"
选项卡从 servicebus 获取消息,但出现错误。我希望能够获取并显示消息

azure message servicebus
1个回答
0
投票

在服务总线中启用自动转发功能后,默认情况下可能不支持门户的消息查看。但消息转发操作将在目标队列或主题中成功发生。

还有,

服务总线不允许在启用了自动转发的源实体上创建消息接收器。

上述相关信息请参考MSDoc

所以,如果你想偷看消息,你需要禁用自动转发功能并尝试一下。

我也在我的环境中尝试了类似的方法,并收到了如下所示的相同警报。

enter image description here

作为解决方法,请尝试使用 CLI 启用自动转发功能,并尝试从门户发送

peek from start
消息以避免冲突。

 az servicebus queue create --resource-group "asha" --namespace-name "newsbjh" --name myqueue --forward-to latestqueue

enter image description here

enter image description here

请参阅 MSDoc 使用 Python 或 C# 浏览和查看服务总线中的消息。

© www.soinside.com 2019 - 2024. All rights reserved.