-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: facing issue while executing the pattern script #46
Comments
Hey @sowjanya1117 - I was able to run the sample locally with no issues. I am running it on MacBook Pro M3. Can you please confirm the folliwng
From the logs you shared there seems to be a connection issue. |
Hi @TamimiGitHub below are the below Actually i'm new to both solace and python |
Your local python environment configuration looks correct. Can we please confirm that you are running a local version of the solace broker using docker. From the getting started page:
Alternatively, are you using the right end point for your solace cloud account? You can run the python samples with non default (localhost) endpoints as follows:
where Hopefully this helps resolving the issue you are facing. |
Bug Description
python direct_publisher.py
2024-10-21 17:49:26,216 [WARNING] solace.messaging.core: [_solace_transport.py:89] [[SERVICE: 0x101894e00] - [APP ID: xxxxx-MacBook-Pro.local/38331/00000001/Cm9rBNGWKT]] {'caller_description': 'From service event callback', 'return_code': 'Ok', 'sub_code': 'SOLCLIENT_SUBCODE_COMMUNICATION_ERROR', 'error_info_sub_code': 14, 'error_info_contents': 'TCP connection failure for fd 8, error = Connection refused (61)'}
2024-10-21 17:49:26,216 [WARNING] solace.messaging.core: [_solace_transport.py:89] [[SERVICE: 0x101894e00] - [APP ID: xxxxxx-MacBook-Pro.local/38331/00000001/Cm9rBNGWKT]] {'caller_description': 'do_connect', 'return_code': 'Not ready', 'sub_code': 'SOLCLIENT_SUBCODE_COMMUNICATION_ERROR', 'error_info_sub_code': 14, 'error_info_contents': 'TCP connection failure for fd 8, error = Connection refused (61)'}
2024-10-21 17:49:26,216 [WARNING] solace.messaging.connections: [messaging_service.py:1245] [[SERVICE: 0x101894e00] - [APP ID: xxxxxx-MacBook-Pro.local/38331/00000001/Cm9rBNGWKT]] Connection failed. Status code: 3
Traceback (most recent call last):
File "/Users/Downloads/solace-samples-python/patterns/direct_publisher.py", line 53, in
messaging_service.connect()
File "/Users/xxxxxxxx/messaging/messaging_service.py", line 1246, in connect
raise error
solace.messaging.errors.pubsubplus_client_error.PubSubPlusCoreClientError: {'caller_description': 'do_connect', 'return_code': 'Not ready', 'sub_code': 'SOLCLIENT_SUBCODE_COMMUNICATION_ERROR', 'error_info_sub_code': 14, 'error_info_contents': 'TCP connection failure for fd 8, error = Connection refused (61)'}
Expected Behavior
script need to execute and consumer will consume the messages
Steps to Reproduce
need support while using python api and smf protocals
Solace Product
Solace PubSub+ Event Broker
Solace Broker version
No response
Solace API
No response
Solace API version
No response
The text was updated successfully, but these errors were encountered: