question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Downloading a blob fails for v1.3.1+ if blob is written during download

See original GitHub issue

Note: 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marco-rossi29commented, Jun 11, 2019

Perfect, that’s a great tip and it will probably solve my issue. Thank you very much for your help!

0reactions
zezha-msftcommented, Jun 9, 2019

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=*.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found