Hello @Matt Schwartz
The error message you are seeing is related to SSL protocol.
It is possible that the SSL connection is being closed unexpectedly. This can happen due to a number of reasons, such as network issues or server-side issues. To fix this issue, you can try the following steps:
- Upgrade the Azure Storage Blob client library for Python to the latest version. You can do this by running the following command:
pip install --upgrade azure-storage-blob
- Try setting the
max_concurrency
parameter to a lower value when calling thedownload_blob()
method. This can help reduce the load on the server and prevent the SSL connection from being closed unexpectedly. For example:blob_client.download_blob(max_concurrency=1)
- If the issue persists, you can try disabling SSL verification by setting the
verify
parameter toFalse
when creating theBlobServiceClient
orBlobClient
object. However, this is not recommended for security reasons. For example:from azure.storage.blob import BlobServiceClient blob_service_client = BlobServiceClient.from_connection_string(conn_str, verify=False)
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.