我想从服务总线读取订阅消息。我正在使用qpid-proton
python 库。我正在关注此链接以接收消息Proton-Python-Example-Simple-Receive。我正在传递此 url 以接收来自服务总线的消息 -
url = 'amqps://mynamespace.servicebus.windows.net/SharedAccessKeyName=xxxx/SharedAccessKey=xxxxxxxxx/python-test/Subscriptions/AllMessages'
# python-test is the name of the topic
# AllMessages is the name of the subscription
我收到以下错误 -ERROR:root:The messaging entity 'sb://mynamespace.servicebus.windows.net/sharedaccesskeyname=xxxxx/sharedaccesskey=xxxxxxxxxxxxx/python-test/subscriptions/allmessages' could not be found. TrackingId:c1e4a39edbd44040b2fd48a552d6ae2b_G2, SystemTracker:gateway6, Timestamp:7/19/2017 7:58:51 AM
这是因为上述 URL 的格式不正确。我在网上搜索过,没有提供这方面的适当文件。通过 qpid 读取订阅消息的正确 URL 格式是什么。