Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.6k stars 2.81k forks source link

ConnectionError: EOF occurred in violation of protocol #29392

Closed jellevwezel closed 1 year ago

jellevwezel commented 1 year ago

Describe the bug Since yesterday, we are seeing the following error in requests to the text-prediction service via the SDK: Error occurred in request., ConnectionError: EOF occurred in violation of protocol (_ssl.c:2396) This happens in the file: azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py

When we search for this issue, we found that it could be related to our proxy settings, the problem is that we have made no changes since a month.

We checked our OpenSSL version: OpenSSL 1.1.1n 15 Mar 2022 Updated today, but did not resolve issue.

Furthermore, we tried: (https://stackoverflow.com/a/50681396/980615)

from urllib.request import urlopen
urlopen('https://www.howsmyssl.com/a/check').read()

But that came back okay.

To Reproduce Steps to reproduce the behavior:

cv_credentials = CognitiveServicesCredentials(<AZURE_CV_API_KEY>)
cv_client = ComputerVisionClient(<AZURE_CV_ENDPOINT>, cv_credentials)
with io.BytesIO(image_bytes) as stream:
            response = cv_client.read_in_stream(stream, raw=True)

Expected behavior We expect the call to succeed.

Screenshots image

Additional context

l0lawrence commented 1 year ago

Hi @jellevwezel thanks for the feedback, we will get back to you asap.

jellevwezel commented 1 year ago

The issues seem to have disappeared since yesterday. They went as mysteriously as they came.