-
-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Blob Storage: "TypeError: '<' not supported between instances of 'int' and 'NoneType'" #1097
Comments
So far as I can see this code is just using the Azure API - django-storages/storages/backends/azure_storage.py Lines 44 to 46 in cf50a22
Suggest reporting this at https://github.com/Azure/azure-sdk-for-python. |
acknowledged upstream bug, this can be closed |
The upstream issue was closed in August but the workaround presented doesn't seem to be working. I still get an azure.core.exceptions.IncompleteReadError: ('Connection broken: IncompleteRead(8388608 bytes read, 25165824 more expected)', IncompleteRead(8388608 bytes read, 25165824 more expected)) After some investigation, I discovered that the reason why 1.11 doesn't have this issue is because it actually bypasses the CDN and streams the file directly from In 1.11, the call to download the file invokes django-storages/storages/backends/azure_storage.py Lines 169 to 178 in 3fbad31
django-storages/storages/backends/azure_storage.py Lines 43 to 48 in 3fbad31
In the latest version, that logic is not present anymore and fails when streaming from the Microsoft CDN. |
django-storages version: 1.12.3
Django version: 3.2.10
azure-storage-blob version: 12.9.0
azure-core version: 1.21.1
I'm serving a simple FileResponse and get the following error
I've reverted to django-storages 1.11 and that works fine.
Here's my AzureStorageClass
The text was updated successfully, but these errors were encountered: