🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Consume existing Solace Queue using Python

Hi @marc @Tamimi

we have existing solace queue with topic subscription enabled. need to listen and print message flowing to that queue.

tried below code & got error, please help.

persistent_receiver: PersistentMessageReceiver = messaging_service.create_persistent_message_receiver_builder()\
          .with_missing_resources_creation_strategy(MissingResourcesCreationStrategy.CREATE_ON_START)\
          .build(durable_exclusive_queue)
persistent_receiver.start()

Error:

2023-04-17 17:22:06,804 [WARNING] solace.messaging.receiver: 
[_persistent_message_receiver.py:417]  [[SERVICE: 0x2a1b0836cb0] [RECEIVER: 0x2a1b08882e8]] 
q-xxxx-xxx-xxx-ack-all creation failed with the following sub 
code SOLCLIENT_SUBCODE_ENDPOINT_PROPERTY_MISMATCH(79)

Comments

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 644 admin

    Hi @jawaharyuvr, you don't need to tag the admins to look at your message. Thanks!

    SOLCLIENT_SUBCODE_ENDPOINT_PROPERTY_MISMATCH means that the queue you created has different configuration than the properties you're specifying. What configuration does it have, or did you change anything from the defaults? E.g. permissions, access-type, etc.

    If you know the queue exists, then you don't need the "with missing resources creation strategy". This automatically builds a queue (with certain properties) if it's not there. (and as you can see, fails if the queue already exists but doesn't look like your specified configuration).

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 541 admin

    And to follow up on Aaron's request for more details, are you using queue templates on your broker?