[BUG] The value for one of the HTTP headers is not in the correct format. x-ms-version: 2021-04-10
See original GitHub issueLibrary 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:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >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
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).
@JoeRobich Looks like this is a bug in Azurite because you’re using
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” ?