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.

Storage Exception on Blob.UploadTextAsync - InvalidBlockList

See original GitHub issue

Error returned :

{ "ErrorCode": "InvalidBlockList", "ErrorMessage": "The specified block list is invalid.\nRequestId:f31c101a-0001-0031-075e-d0c218000000\nTime:2017-05-19T05:15:53.0372722Z", "AdditionalDetails": {} }

StackTrace: [0] at Microsoft.WindowsAzure.Storage.Core.Util.StorageAsyncResult1.End() in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Util\StorageAsyncResult.cs:line 77 at Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.EndUploadFromStream(IAsyncResult asyncResult) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Blob\CloudBlockBlob.cs:line 776 at Microsoft.WindowsAzure.Storage.Core.Util.AsyncExtensions.<>c__DisplayClass4.<CreateCallbackVoid>b__3(IAsyncResult ar) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Util\AsyncExtensions.cs:line 115 — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at … `

My Code await blob.UploadTextAsync(content, null, null, bro, null);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
miroberscommented, May 19, 2017

This can happen when a concurrent upload commits after you have started to upload but before you commit. In that case, your upload fails. You can retry this error or attempt some other recovery action based on your scenario.

0reactions
leroibeukescommented, May 25, 2017

Ok - So turns out we were receiving concurrent requests and assumed optimistic concurrency would work for us … it didn’t. We’ve deployed a new version using leases (pessimistic concurrency) and this has helped us resolve the issue. Thanks for the help in pin-pointing the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uploading blob or block content fails in Azure Blob Storage
Resolve upload failures of blob or block content (BlockCountExceedsLimit, InvalidBlobOrBlock, InvalidBlock, or InvalidBlockList) in Azure ...
Read more >
Exception when creating blob asyncronously with Azure ...
In our project, we were using the Azure Storage 6.0.0 version and we were making use of the UploadTextAsync method to create blobs....
Read more >
Untitled
Uploading blob or block content fails in Azure Blob Storage Exception While uploading ... UploadTextAsync - InvalidBlockList #456 - Github packard insurance ...
Read more >
Dealing With “The specified blob or block content is invalid ...
If you're uploading blobs by splitting blobs into blocks and you get the error – The specified blob or block content is invalid,...
Read more >
Azure Storage Blobs .Net SDK v12 upgrade guide and tips
Method GetEntityBlobAsync<Entity> accepts a CloudBlockBlob or BlobClient and returns a json entity from the text downloaded from the blob. If ...
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