Closed akshaybabloo closed 5 years ago
could you please provide the API name you tried to use?
So in this code, I am listing all the blobs, and then downloading them to the folder. The problem happens in the loop, at the third loop or so I get that error.
Hi @akshaybabloo
Hopefully you've found a workaround for this problem. Would you like to use debug mode and locate where the error exactly happens. Here is how I test and it's working for me.
self._create_block_blob()
self._create_block_blob()
blob_list = self.bs.list_blobs(self.container_name)
#Assert
for blob in blob_list:
self.assertTrue(blob.properties.server_encrypted)
I believe this error is shown when you try to download a zero-length blob. You can get around it by checking the blob properties prior to trying the download, or alternatively just let it happen - the file is downloaded as it should be anyway.
@lyceus ya you are right. Should have checked it. Thank you.
Which service(blob, file, queue) does this issue concern?
blob
Which version of the SDK was used? Please provide the output of
pip freeze
.What problem was encountered?
I am getting an error when trying to read a blob from bytes, it doesn't throw any exception though and it doesn't even say which file causes the problem. The error is:
Have you found a mitigation/solution?
No.