简体   繁体   English

qpid质子URL,用于接收来自给定订阅(主题)的消息

[英]qpid proton url for receiving messages from a given subscription (of a topic)

I would like to read subscription messages from service bus. 我想从服务总线中读取订阅消息。 I am using qpid-proton library for python. 我正在为Python使用qpid-proton库。 I am following this link to receive messages Proton-Python-Example-Simple-Receive . 我正在跟踪此链接以接收消息Proton-Python-Example-Simple-Receive I am passing this url to receive messages from service bus - 我正在传递此网址以接收来自服务总线的消息-

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

I am getting the following error - 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 我收到以下错误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 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

This is due to fact that the above URL is not formed correctly. 这是由于上述URL格式不正确。 I have searched over the net and no proper documentation is provided in this respect. 我已经在网上搜索过,在这方面没有提供适当的文档。 What will be the correct URL format to read subscription messages through qpid. 通过qpid读取订阅消息的正确URL格式是什么?

Please try to change your url as below. 请尝试如下更改您的网址。

amqps://<SAS Policy Name>:<SharedAccessKey>@mynamespace.servicebus.windows.net/python-test/Subscriptions/AllMessages

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM