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.

[Storage - Blob] : Azure Storage version "2021-10-04" does not exist

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
yyvesscommented, Oct 28, 2022

@jeremymeng Public cloud in West Europe

0reactions
FranckAtZelroscommented, Dec 6, 2022

Hi @EmmaZhu, I tested @azure/storage-blob@12.12.0 which uses version “2021-10-04” and it is working now in our azure blob storage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The specified blob does not exist on downloadAttributes with ...
The specified blob does not exist on downloadAttributes with azure-storage-api java ; storageConnectionString = "DefaultEndpointsProtocol=http;AccountName=" ...
Read more >
Azure Blob Storage error codes - Microsoft Learn
Error code HTTP status code User message BlobAlreadyExists Conflict (409) The specified blob already exists. BlobNotFound Not Found (404) The specified blob does not exist. ContainerAlreadyExists...
Read more >
[BUG] Inaccurate error message "The specified container does ...
Library name and version. Azure.Storage.Blobs 12.14.0 ... Azure.RequestFailedException: The specified container does not exist.
Read more >
@azure/storage-blob - npm
Azure Storage Blob is Microsoft's object storage solution for the cloud. ... which web workers do not make available by default.
Read more >
azure-storage-blob - PyPI
Microsoft Azure Blob Storage Client Library for Python. ... the url is not in this format <my_account_name>.blob.core.windows.net ), please instantiate the ...
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