facing "azure.core.exceptions.ResourceModifiedError: The condition specified using HTTP conditional header(s) is not met" while trying to download azure blobs using python.

Muhsin Muhammed 0 Reputation points

I am trying to download blobs from my azure account using azure python SDK. I am using the chunks() method to download large sized blobs from containers. But I am facing the following error for large sized blobs.User's image

I have also tried several other methods of downloading a blob like readinto(), downloadtostream etc. but everything returns the same error. Any kind of help or suggestions are appreciated.

The code I wrote is this :-

with open(download_file_path, "wb") as file:
            data = blob_instance.download_blob()
            for stream in data.chunks():
Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
148 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
1,568 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,764 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,420 questions
{count} votes