Skip to content

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

@chokosticks

Description

@chokosticks

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions