kamoloff
kamoloff

Reputation: 118

Apache-libcloud raises 403 for Azure Blob Storage

I have a celery task which copies data from one azure container to another using apache libcloud.

Task works fine but after some time I get 403 error.(For example task copies 50 files and then suddenly raises 403)

What could be the problem?

python3.8
apache-libcloud==3.3.1
celery==5.0.5

Upvotes: 0

Views: 139

Answers (1)

Ecstasy
Ecstasy

Reputation: 1864

Thank you kamoloff. As you mentioned in the comment, the cause of the 403 error was trying to copy an empty file.

Alternatively, 403 error also occurs when there is a larger file size.

"The maximum file size currently supported by the Azure Storage driver is 256 MB. Uploading larger file sizes will require a code change in libcloud."

Reference: Upload large file to Azure Blobs

Upvotes: 1

Related Questions