You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.
I am getting a pre-condition failed when trying to read an image from blob.
Here is how I save the images to blob.
Here is the code to get the image out.
var blob = container.GetBlockBlobReference(imagePath);
var stream = await blob.OpenReadAsync();
The exception is thrown when I try and read the stream. This is the log for the single read event.
PUT /devstoreaccount1/app-icons?restype=container 409 0.549 ms - 146
HEAD /devstoreaccount1/app-icons/6204a98b-661a-4945-a09b-8d2d01035489.jpg 200 0.399 ms - 91880
GET /devstoreaccount1/app-icons/6204a98b-661a-4945-a09b-8d2d01035489.jpg 412 0.650 ms - 187
I looked into the azurite code and found where the headers are being checked:
I'm not sure which conditional headers are being populated since I'm not specifying anything. It might be possible that the default C# client has some preconditions?
The text was updated successfully, but these errors were encountered:
I am getting a pre-condition failed when trying to read an image from blob.
Here is how I save the images to blob.
Here is the code to get the image out.
The exception is thrown when I try and read the stream. This is the log for the single read event.
I looked into the azurite code and found where the headers are being checked:
azurite/lib/validation/blob/ConditionalRequestHeaders.js
Lines 51 to 54 in d1861c2
I'm not sure which conditional headers are being populated since I'm not specifying anything. It might be possible that the default C# client has some preconditions?
The text was updated successfully, but these errors were encountered: