[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
- README.md
- source code documentation
- SDK API docs on https://docs.microsoft.com
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:
- Install @azure/storage-blob@12.12.0
- Instantiate the blob service client and create a container if it exists
- 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
- Install @azure/storage-blob@12.12.0
- Instantiate the blob client, create a container
- 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:
- Created a year ago
- Comments:17 (11 by maintainers)
Top 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 >
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 Free
Top 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
@jeremymeng Public cloud in West Europe
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.