Downloading a blob fails for v1.3.1+ if blob is written during download
See original GitHub issueNote: I understand that this breaking change was done on purpose in commit 8f68597815022e20df5df5402508a2569d8e6bfe
. Is there a better way to download a blob that may be written?
Which service(blob, file, queue) does this issue concern?
get_blob_to_path()
Which version of the SDK was used? Please provide the output of pip freeze
.
azure-storage-blob-1.3.0 works azure-storage-blob-1.3.1 doesn’t work
What problem was encountered?
download fails:
Client-Request-ID=877e7040-7e47-11e9-b109-a08cfde1f962 Retry policy did not allow for a retry: Server-Timestamp=Fri, 24 May 2019 17:15:29 GMT, Server-Request-ID=7b05956d-801e-0008-4b54-12e202000000, HTTP status code=412, Exception=The condition specified using HTTP conditional header(s) is not met. ErrorCode: ConditionNotMet<?xml version="1.0" encoding="utf-8"?><Error><Code>ConditionNotMet</Code><Message>The condition specified using HTTP conditional header(s) is not met.RequestId:7b05956d-801e-0008-4b54-12e202000000Time:2019-05-24T17:15:29.2184347Z</Message></Error>.
Error: The condition specified using HTTP conditional header(s) is not met. ErrorCode: ConditionNotMet
<?xml version="1.0" encoding="utf-8"?><Error><Code>ConditionNotMet</Code><Message>The condition specified using HTTP conditional header(s) is not met.
RequestId:7b05956d-801e-0008-4b54-12e202000000
Have you found a mitigation/solution?
I downgraded to 1.3.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Azure blob file download failed after downloading a few files
I tried to download blob files using BlobClient.downloadToFile(dest), but it failed after downloading a few files. package com.blob.download ...
Read more >Node.js v19.3.0 Documentation
Iterates through the list of functions passed to tracker.calls() and will throw an error for functions that have not been called the expected...
Read more >E@syfile Forms Viewer - NET
E@syfile Forms Viewer: Error when downloading Forms Viewer. In the latest ... Viewer software must be upgraded to V1.3.1. A download button ...
Read more >Azure Blob download(GET) causes failed PUT request
Every time the file is downloaded, GET request is executed, but at the same time PUT request is also executed for some reason,...
Read more >Troubleshooting Windows Devices: Workspace ONE ...
Endpoints used for Windows Update downloads of apps and OS updates. *.mp.microsoft.com over 80/443. Locating Log Files and Registry Keys.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perfect, that’s a great tip and it will probably solve my issue. Thank you very much for your help!
Hi @marco-rossi29, thanks for the clarification!
I assume your blob is being manipulated in an append-only pattern, right? E.g. the extra 10MB of data was added at the end of the blob.
To be clear, the SDK is locking onto the blob’s etag to protect the integrity of the downloaded data. In most use cases, there’s no guarantee that the data is being modified in a way that still allows the downloaded data to be “good”, but if you are only appending blocks at the end of the blob, then you could work around the protection by specifying
if_match=*
.