azure-sdk-for-js: [Storage - Blob] : Azure Storage version "2021-10-04" does not exist

  • Package Name: azure-sdk-for-js/storage/storage-blob (npm : @azure/storage-blob)
  • Package Version: 12.12.0
  • Operating system: MacOS (All)
  • nodejs
    • version: 16
  • browser
    • name/version: N/A
  • typescript
    • version: 4.6.2
  • Is the bug related to documentation in

Describe the bug @azure/storage-blob@12.12.0 uses the Azure Storage version “2021-10-04”, this version does not exist or is not already available.

To Reproduce Steps to reproduce the behavior:

  1. Install @azure/storage-blob@12.12.0
  2. Instantiate the blob service client and create a container if it exists
  3. The creation fails with the error below
const connectionString = "ABCD"; // Connection String
const blobServiceClient  = BlobServiceClient.fromConnectionString(connectionString);
const containerClient = blobServiceClient.getContainerClient("myContainer");
const response = await containerClient.createIfNotExists();

Expected behavior

  1. Install @azure/storage-blob@12.12.0
  2. Instantiate the blob client, create a container
  3. The container is created

Error

{
  "name": "RestError",
  "code": "InvalidHeaderValue",
  "statusCode": 400,
  "request": {
    "streamResponseStatusCodes": {},
    "url": "XXX",
    "method": "PUT",
    "headers": {
      "_headersMap": {
        "x-ms-version": "REDACTED",
        "accept": "application/xml",
        "user-agent": "azsdk-js-storageblob/12.12.0 (NODE-VERSION v16.15.0; Darwin 21.6.0)",
        "x-ms-client-request-id": "92649586-1d83-42f0-8796-a00796454d87",
        "x-ms-date": "REDACTED",
        "authorization": "REDACTED",
        "cookie": "REDACTED"
      }
    },
    "withCredentials": false,
    "timeout": 0,
    "keepAlive": true,
    "decompressResponse": false,
    "requestId": "92649586-1d83-42f0-8796-a00796454d87"
  },
  "details": {
    "content-length": "329",
    "content-type": "application/xml",
    "date": "Wed, 26 Oct 2022 16:17:18 GMT",
    "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0",
    "x-ms-request-id": "f3220ea4-201e-0017-4256-e965f8000000",
    "message": "The value for one of the HTTP headers is not in the correct format.\nRequestId:f3220ea4-201e-0017-4256-e965f8000000\nTime:2022-10-26T16:17:18.5047352Z",
    "code": "InvalidHeaderValue",
    "HeaderName": "x-ms-version",
    "HeaderValue": "2021-10-04"
  },
  "message": "The value for one of the HTTP headers is not in the correct format.\nRequestId:f3220ea4-201e-0017-4256-e965f8000000\nTime:2022-10-26T16:17:18.5047352Z"

Additional context The problematic version 2021-10-04 is not listed in the supported versions

Here is the declaration of the 2021-10-04 version

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (11 by maintainers)

Most upvoted comments

@jeremymeng Public cloud in West Europe