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
Hi,
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.
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():
file.write(stream)