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.

Incorrect/confusing error message on bad blob refrence

See original GitHub issue

We are using the WindowsAzure.Storage 7.1.3-preview in netstandard1.6 project and had some some issues when trying to upload a blob. In our case we had a bug that formatted the id for the blockblobreference badly. The id had this value xxxxxxx.[“FileNameExtension”,“.jpg”]

The error message we got back was

StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

I am not sure if this is a bug really, but i think in the case the BlockBlobReference is not formatted correctly, there should be a better error message?

The exception happend on UploadFromStreamAsync method

CloudBlockBlob blockBob = container.GetBlockBlobReference(id);  
await blockBob.UploadFromStreamAsync(data);

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jofri-msftcommented, Aug 26, 2016

@lasrol and @GuardRex

This issue should be fixed in the Corefx library by this change in an upcoming release https://github.com/dotnet/corefx/pull/11159

0reactions
pemari-msftcommented, Aug 26, 2016

I’m going to close this issue as it has been resolved by the CoreFx team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error deleting blob container ' (my container name) ': details
You get this error message because there is still a reference between your blob and a disk or image. Check again using the...
Read more >
Copy data to blob storage fails with ...
When copying data from cosmos DB to Blob storage I get an error: "UserErrorFailedFileOperation,'Type=Microsoft.DataTransfer.Common.Shared.
Read more >
Azure Blob Storage error codes
Error code HTTP status code User message BlobAlreadyExists Conflict (409) The specified blob already exists. BlobNotFound Not Found (404) The specified blob does not exist. ContainerAlreadyExists...
Read more >
Blob assets | Entities | 0.50.1-preview.2
This implies that blob assets may not contain absolute references to itself, which precludes the use of internal pointers. Any information you ...
Read more >
Chapter 2 Server Error Message Reference
Occurs for failure to create or copy a file needed for some operation. Possible causes: Permissions problem for source file; destination file already...
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