Skip to content
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

azure-servicebus/receive_subscription.py azure.servicebus.exceptions.ServiceBusConnectionError: ErrorCodes.UnknownError: Connection in an unexpected error state. #13097

Closed
boltunoff opened this issue Aug 13, 2020 · 3 comments
Assignees
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

Comments

@boltunoff
Copy link

  • Package Name: azure-servicebus/receive_subscription.py
  • Package Version: latest
  • Operating System: MacOS Catalina, Version 10.15.5. Pycharm
  • Python Version: 3.8

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:

  1. pip install azure-servicebus --pre
  2. create .py file containing the example's code :

`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.")`

  1. run .py script

Expected behavior
message content printed out on the console

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 13, 2020
@kaerm kaerm added Client This issue points to a problem in the data-plane of the library. Service Bus labels Aug 13, 2020
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Aug 13, 2020
@kaerm
Copy link
Contributor

kaerm commented Aug 13, 2020

@boltunoff thanks for reporting this, @KieranBrantnerMagee could you take a look at this ?

@yunhaoling
Copy link
Contributor

hey @boltunoff , thanks for reaching out.

Honestly this is the first time I see the error and I can't reproduce it on my Mac. My gut feeling is that it's related to networking/proxy/ssl settings. But we need more information to locate the issue.

With that being said, can you turn on the networking tracking functionality when constructing the ServiceBusClient and provide us with the detailed log? that would be helpful to us.

that would be

import logging
logging.basicConfig(level=logging.DEBUG)

servicebus_client = ServiceBusClient.from_connection_string(conn_str=CONNECTION_STR, logging_enable=True)
# code..

@KieranBrantnerMagee KieranBrantnerMagee added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Aug 18, 2020
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Aug 25, 2020
@ghost
Copy link

ghost commented Aug 25, 2020

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@ghost ghost closed this as completed Sep 9, 2020
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this issue Mar 2, 2021
[Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (Azure#13097)

* Fix validation errors for UsageDetails_List

* fix linting errors in 2019-10-01/consumption.json

* remove newlly added error code

* don't change meterId description

Co-authored-by: Mohammad Mohammad <mmohammad@microsoft.com>
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this issue Mar 2, 2021
[Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (Azure#13097)

* Fix validation errors for UsageDetails_List

* fix linting errors in 2019-10-01/consumption.json

* remove newlly added error code

* don't change meterId description

Co-authored-by: Mohammad Mohammad <mmohammad@microsoft.com>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

4 participants