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.

[BUG] The value for one of the HTTP headers is not in the correct format. x-ms-version: 2021-04-10

See original GitHub issue

Library name and version

Azure.Storage.Blobs 12.11.0

Describe the bug

Upgrading dependency from 12.10.0 to 12.11.0 to get the new implicit dependency on System.Text.Encodings.Web 4.7.2, causes failures in tests.

Expected behavior

The requests to be successful. Especially given that 2021-04-10 is the recommended current version https://docs.microsoft.com/en-us/rest/api/storageservices/previous-azure-storage-service-versions.

Actual behavior

  Error Message:
   Azure.RequestFailedException : The value for one of the HTTP headers is not in the correct format.
RequestId:19911bc0-5a01-4bef-8acc-1195c629319d
Time:2022-03-22T00:52:32.621Z
Status: 400 (The value for one of the HTTP headers is not in the correct format.)
ErrorCode: InvalidHeaderValue

Additional Information:
HeaderName: x-ms-version
HeaderValue: 2021-04-10

Reproduction Steps

Code causing the failure:

internal BlobContainerClient CreateBlobClient() => new("UseDevelopmentStorage=true", this.containerName);

Environment

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JoeRobichcommented, Mar 24, 2022

Thanks for investigating. Looks like they have a bug open for this problem (https://github.com/Azure/Azurite/issues/1404) and a possible fix in the works (https://github.com/Azure/Azurite/pull/1393).

1reaction
amnguyecommented, Mar 24, 2022

@JoeRobich Looks like this is a bug in Azurite because you’re using

internal BlobContainerClient CreateBlobClient() => new("UseDevelopmentStorage=true", this.containerName);

Can you make a bug here for them to address? https://github.com/Azure/Azurite/issues @blueww for notification.

@rossdargan can you confirm you’re also using Azurite and the same “UseDevelopmentStorage=true” ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The value for one of the HTTP headers is not in ...
"The value for one of the HTTP headers is not in the correct format," suggests that one or more of the HTTP headers...
Read more >
'HTTP headers is not in the correct format' error when ...
I'm trying to create an Azure blob container using Python SDK with the below code. I'm getting an 'ErrorCode:InvalidHeaderValue' in the response ...
Read more >
Azure.RequestFailedException: The value for one of the HTTP ...
RequestFailedException: The value for one of the HTTP headers is not in the correct format. The detailed error message looks like the following:...
Read more >
The value for one of the HTTP headers is not in ... - Joe Blogs
RequestFailedException : The value for one of the HTTP headers is not in the correct format – Azurite with Docker + dotnet core....
Read more >
Azure blob storage - Connecting to File Storage
The value for one of the HTTP headers is not in the correct format. I have tried with a new storage account on...
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