azure-servicebus/receive_subscription.py azure.servicebus.exceptions.ServiceBusConnectionError: ErrorCodes.UnknownError: Connection in an unexpected error state. #13097
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Describe the bug
I am trying to receive messages from the servicebus subscription topic following the receive_subscription.py sample.
And running into this error:
2020-08-13 01:20:47.650 Python[33586:10760876] CFNetwork SSLHandshake failed (-9806)
ConnectionClose('ErrorCodes.UnknownError: Connection in an unexpected error state.')
azure.servicebus.exceptions.ServiceBusConnectionError: ErrorCodes.UnknownError: Connection in an unexpected error state.
To Reproduce
Steps to reproduce the behavior:
`from azure.servicebus import ServiceBusClient
CONNECTION_STR = 'my conn string'
TOPIC_NAME = 'my topic name'
SUBSCRIPTION_NAME = 'my subscr name'
servicebus_client = ServiceBusClient.from_connection_string(conn_str=CONNECTION_STR)
with servicebus_client:
receiver = servicebus_client.get_subscription_receiver(
topic_name=TOPIC_NAME,
subscription_name=SUBSCRIPTION_NAME
)
with receiver:
received_msgs = receiver.receive_messages(max_batch_size=10, max_wait_time=5)
for msg in received_msgs:
print(str(msg))
msg.complete()
print("Receive is done.")`
Expected behavior
message content printed out on the console
The text was updated successfully, but these errors were encountered: