-
How to return 'show current-config all' using SEMP API
Trying to construct an API request for the 'show current-config all' CLI command but not sure if this is possible for the SEMP API. Does anyone know if this is possible? Here is what I have tried with python. ``` requestBody = "<rpc><show><current-config><all/></current-config></show></rpc>" requestResponseObject =…
-
Match (regex) incoming message topic to a list of topics (Python)
Hi, I have a queue which is internally subscribed to various topics. When I read from this queue I can retrieve the original topic. I have a list of actions in my application that run based on whether or not this topic matches that entry: message topic: cars/toyota List of topic actions: cars/bmw > cars/> cars/*/> I think…
-
Python TLS Connection Reset By Peer
I'm a bit at loss here, Solace shows everything is ready to accept TLS connections but it refuses with the following error on the client side: solace.messaging.errors.pubsubplus_client_error.PubSubPlusCoreClientError: {'caller_description': 'do_connect', 'return_code': 'Not ready', 'sub_code':…
-
Synchronous publish in python ?
Hi all, what is the easiest, most clean code to publish ONE guaranteed message in python and only proceed after the ACK from the broker has arrived ? (I know, that this usage pattern is not performant, if I have many messages to publish. My use is different). Thank you Uli
-
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()\…
-
python3 using qpid::proton with Solace pubsub+ broker
Hello all, In the european aviation community a well know provider of flight data has change its internal AMQP1.0 broker, switching from Apache ActiveMQ to Solace PubSub+. A set of our application but very few in fact use Python3 and interrogate this AMQP broker.So we have too few experience in this matter. I use to…
-
Python connect to solace Pubsub+ cloud
I have service created on https://console.solace.cloud/services on GCP platform and I am trying to connect to this service from python 3.7 using solace-pubsubplus pypi package: https://pypi.org/project/solace-pubsubplus/ Here is my code snippet for connecting to the service: _def publish(message): import…
-
Connecting Solace using Python with TLS
Hi @Tamimi , kindly help with below connection error whether certificates are not loading or need to do changes in code. from solace.messaging.messaging_service import MessagingService, RetryStrategy from solace.messaging.config.transport_security_strategy import TLS from solace.messaging.config.authentication_strategy…
-
How to Publish messages in JSON Format in PYTHON ?
Hi Myself ranganath working as software engineer in standard chartered bank my requirement is to publish message in JSON Format in python . Kindly assist.
-
Does Python have this Cache Session??
For C#,I can use SendCacheRequest to get a synchronous cache request. But in Python I can't find any package allow request cache session? can any one help me? Thank you.
-
Tuning pre-fetch for load balancing in Python
Hi Team, I have built a system comprised of a number of workers, N, (or application processing engines) fed by a single non exclusive queue. Each job on the queue either takes between 20 second and a minute to complete or under 0.1 seconds (because the job on the queue requires no work). Ideally if there are 3 workers (so…
-
i am trying to access my queue but getting error
i am getting this when tying to connect with queue Messaging Service connected? True <bound method Queues.SimpleDurableQueue.get_name of <solace.messaging.resources.queue.Queues.SimpleDurableQueue object at 0x7fc87abe7340>> 2022-12-08 09:41:41,744 [WARNING] solace.messaging.receiver: [_solace_utilities.py:363] Invalid…
-
Python users! What are you using the Python API for?
Hey folks! As most of you know by now, we have a Solace PubSub+ Messaging API for Python and I am curious to know what use-cases you are using it for? How are you using the Python API? Where are you using it at? Happy to start the discussion and community sharing here! 🎉
-
Sending json message using Python to queue using Kerberos authentication.
Does python api supports solace Kerberos authentication?. If so can any one share sample code? If not what are other ways to use Kerberos authentication for sending json message.
-
Python API limits message size to 0.176MB while Solace configuration has 10MB limit
Hello all, I am trying to use the Python API from the official repo (https://github.com/SolaceSamples/solace-samples-python/blob/master/patterns/guaranteed_publisher.py) to publish some messages of size 3-5 MB to a Solace queue, but all the messages under 0.176 MB work and the ones above do not work. I am trying strings…
-
How to set up consumer in Azure Container Instances using python qpid proton
Hi all, I have been trying to deploy a consumer as an Azure Container Instance implemented in python, which uses qpid proton. When running the Docker image locally it works without any issue, however when deploying the image as an ACI, I obtain the following error: ```2022-06-03T16:05:19UTC ERROR: proton - Couldn't…
-
Backpressure / message delivery and the Python API
Hi, We have a non exclusive durable queue with several consumers (compute worker) who connect using the Python API. Each consumer runs the MessageHandler in a separate thread, essentially just filling up a buffer with messages, the messages are then consumed by the main thread in the compute worker and results sent out.…
-
Receive the latest message only for both direct message and persistent message - python
Hi all, recently I am engaging a project that require data streaming. Therefore, even though there is a latency in processing the message, I would like the consumer always take the latest message. I am a python developer and would be grateful if someone can tell be how to achieve the above requirement for both direct…
-
Python Proton AMQPS Transport Error
Good afternoon all, Am having some odd behavior using a varient of Solace demo code for Python/Proton AMQPS connection: https://github.com/SolaceSamples/solace-samples-amqp-qpid-proton-python/blob/master/src/simple_recv.py Using the methodology shown in this case, but with a pem key/password i can successfully connect to a…
-
Utilizing Designer with Pipeline
Good morning Solace world... Am continuing my progress with Solace and going well now up and running. Am onto playing with the Designer and am unable to get a message to port through an app. I have a simple app in which it has: 1 event for the topic testing/newmessage (incoming) 1 event for the topic testing/outmessage…
-
Python API import issues
Hi Solace Community, I have a strange issue with the Python API - or I might just be dumb right now ;) I've started with a pretty simple script that connects to a broker and just reports the client id and disconnects. (removed sensitive values...) from solace.messaging.messaging_service import MessagingService,…
-
Python TLS/ClientCertificateAuthentication error
Hi All, I am trying to use Python to connect to solace and failing to connect with “unable to get local issuer certificate” error. I have setup TLS with_certificate_validation and authentication strategy with ClientCertificateAuthentication.of. I have tried various combinations to use with or without TLS, while creating…
-
How to set ssl validate certificate to false in python
I am Implementing Solace pubsub solution in python and trying to disable ssl_validate_vertificate . It is working fine in Java but not how to set same in python I tried this way: "solace.messaging.ssl_validate_certificate":False"solace.messaging.ssl_validate_certificate_date":False But it's not working. getting error…
-
How to disable TTL (Time to live) using solace-pubsubplus python library
I am following the sample programs present on this official repo of Solace. https://github.com/SolaceSamples/solace-samples-python/tree/master/samples The publication and subscription of messages are working, its just that I want the messages to be published with TTL set to False. I am not able to find any documentation or…
-
Maximum number of Semp V2 calls at a time?
We have 3000+ queues in a appliance. We would like get all the queues information in JSON. We have a Python application Which makes SEMP V2 GET call to get all these queue information. Is it okay to issue concurrent SEMP v2 GET calls to the appliance ? I believe appliance will process the API call one after the other. We…