Skip to content

InvalidHeaderValue: Blobstorage Module:latest does not support newer versions of Azure.Storage.Blob package .Net. #7436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chokosticks opened this issue Apr 4, 2025 · 2 comments

Comments

@chokosticks
Copy link

chokosticks commented Apr 4, 2025

Expected Behavior

I'm upgrading nuget-packages in a custom module amd64 running on iotedge. The Blobstorage module does not support newer versions of .NET Azure.Storage.Blob. Before upgrading I used 12.13.0. Beyond version 12.15.1 it does not work and I'm getting InvalidHeaderValue.

Current Behavior

Getting as response back from blobstorage module saying: InvalidHeaderValue.

Steps to Reproduce

Provide a detailed set of steps to reproduce the bug.

  1. Run Iotedge module via VS2022
  2. Use local Blobstorage module
  3. Interact with the blobstorage module.

Runtime Versions

  • Edge Agent: 1.5
  • Edge Hub: 1.5
  • Azure Blob Storage: mcr.microsoft.com/azure-blob-storage:latest

Logs

Exception message from Azure.Storage.Blobs Version 12.19.1

Azure.RequestFailedException: The value for one of the HTTP headers is not in the correct format.
RequestId:5e897f4e-3d78-4af9-b6ff-7998d20b50d0
Time:2025-04-04T08:49:50.2869279Z 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: 2023-11-03 ExceptionDetails: The value 2023-11-03 provided for request header x-ms-version is invalid.Microsoft.Cis.Services.Nephos.Common.Protocols.Rest.InvalidHeaderProtocolException: The value 2023-11-03 provided for request header x-ms-version is invalid.
   at Microsoft.Cis.Services.Nephos.Common.Protocols.Rest.BasicHttpProcessorWithAuthAndAccountContainer`1.RunVersionCheck()
   at Microsoft.Cis.Services.Nephos.Common.Protocols.Rest.BasicHttpProcessorWithAuthAndAccountContainer`1.ProcessImpl(AsyncIteratorContext`1 async)+MoveNext()  Content: ?<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidHeaderValue</Code><Message>The value for one of the HTTP headers is not in the correct format.
RequestId:5e897f4e-3d78-4af9-b6ff-7998d20b50d0
Time:2025-04-04T08:49:50.2869279Z</Message><HeaderName>x-ms-version</HeaderName><HeaderValue>2023-11-03</HeaderValue><ExceptionDetails><ExceptionMessage>The value 2023-11-03 provided for request header x-ms-version is invalid.</ExceptionMessage><StackTrace>Microsoft.Cis.Services.Nephos.Common.Protocols.Rest.InvalidHeaderProtocolException: The value 2023-11-03 provided for request header x-ms-version is invalid.
   at Microsoft.Cis.Services.Nephos.Common.Protocols.Rest.BasicHttpProcessorWithAuthAndAccountContainer`1.RunVersionCheck()
   at Microsoft.Cis.Services.Nephos.Common.Protocols.Rest.BasicHttpProcessorWithAuthAndAccountContainer`1.ProcessImpl(AsyncIteratorContext`1 async)+MoveNext()</StackTrace></ExceptionDetails></Error>  Headers: x-ms-request-id: 5e897f4e-3d78-4af9-b6ff-7998d20b50d0 Server: Microsoft-NetCore/2.0 Date: Fri, 04 Apr 2025 08:49:50 GMT Connection: close Content-Type: application/xml Content-Length: 940     at Azure.Storage.Blobs.ContainerRestClient.CreateAsync(Nullable`1 timeout, IDictionary`2 metadata, Nullable`1 access, String defaultEncryptionScope, Nullable`1 preventEncryptionScopeOverride, CancellationToken cancellationToken)    at Azure.Storage.Blobs.BlobContainerClient.CreateInternal(PublicAccessType publicAccessType, IDictionary`2 metadata, BlobContainerEncryptionScopeOptions encryptionScopeOptions, Boolean async, CancellationToken cancellationToken, String operationName)    at Azure.Storage.Blobs.BlobContainerClient.CreateIfNotExistsInternal(PublicAccessType publicAccessType, IDictionary`2 metadata, BlobContainerEncryptionScopeOptions encryptionScopeOptions, Boolean async, CancellationToken cancellationToken)    at Azure.Storage.Blobs.BlobContainerClient.CreateIfNotExistsAsync(PublicAccessType publicAccessType, IDictionary`2 metadata, BlobContainerEncryptionScopeOptions encryptionScopeOptions, CancellationToken cancellationToken)

Additional Information

Thanks in advanced!

@arsing
Copy link
Member

arsing commented Apr 8, 2025

Issues with individual modules need to be reported to the module owner. For the Blob Storage module that's https://azure.microsoft.com/support/create-ticket/

@arsing arsing closed this as completed Apr 8, 2025
@chokosticks
Copy link
Author

Thanks, I'll create a ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants