🎄 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.
Show max num subscriptions exceeded error when running direct receiver script - Python
Hi all,
Currently I am working on the direct message PubSub.
In the beginning, the script works very well without any error.
However, after executing the script several times without making any changes, errors pop out and say the maximum numbers of subscriptions exceeded and unable to unsubscribe the topic.
May I ask is there anyone know what is the reason for this issue and how to prevent it in the future. Many Thanks!
Answers
-
That's weird. Thanks for flagging that, we'll try to reproduce internally.
If you have management access to the broker, could you provide a screenshot or something showing the current number of subscriptions for both the client in question, as well as the Message VPN that you're connecting to?
0 -
The current number of subscriptions for your VPN is at the bottom of your 3rd picture, the "details" one. "Total Unique Subscriptions", which is 8. That's definitely not maxed out. Are you experiencing this issue right now?
For the individual client's stats, Click on "Clients", "Solace Clients", and it should show you a summary of all your clients including each one's subscription count:
0 -
It should be there, if it was successfully added. Note that Direct messaging topic subscriptions only last as long as the client is connected. Topics are not configured objects in Solace... they are just metadata sent along with the messages.
Just double-checking something... are you using the
default
client-username for yourdefault
VPN? By default, there's a toggle inside the Client Profile (located under "Access Control" to allow for shared subscriptions (which you appear to be using), that needs to be toggled. I'm assuming it is.I think we're going to need either some code or more detailed steps on how to reproduce. The broker (and client) doesn't look like it's anywhere near it's maximum number of subscriptions.
BTW... your topic... I'd suggest using a level-separator of
/
to make use of Solace topic hierarchies. So:horse/race/frame
... that way you can subscribe tohorse/>
to receive all horse messages... orhorse/race/>
to receive all horse racing messages.0