Description
- Package Name: @azure/storage-blob
- Package Version: 12.12.0
- Operating system: Linux and Windows
- nodejs
- version: 16.18.0
- browser
- name/version:
- typescript
- version: 4.8.4
- Is the bug related to documentation in
- README.md
- source code documentation
- SDK API docs on https://docs.microsoft.com
Describe the bug
We are using BlockBlobClient.uploadStream
to upload batches composed of several files to Azure Blob Storage. After upgrading from @azure/storage-blob 12.11.0 to 12.12.0 we are receiving the following error:
"RestError: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature."
The exception is thrown after around 100 files, from a specific batch, have been uploaded, We suppose that credentials are valid because the first files are uploaded correctly and also reverting to @azure/storage-blob 12.11.0 solves the issue.
Any help would be appreciated.
To Reproduce
Steps to reproduce the behavior:
- Calling BlockBlobClient.uploadStream more than 100 times
Expected behavior
All the upload operations should succeed.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Following the error message and stack trace:
RestError: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:266a0736-301e-0006-3c35-ec72e8000000
Time:2022-10-30T07:56:28.0808035Z
at handleErrorResponse (/opt/app/node_modules/@azure/core-http/dist/index.js:3161:19)
at /opt/app/node_modules/@azure/core-http/dist/index.js:3097:49
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async StorageRetryPolicy.attemptSendRequest (/opt/app/node_modules/@azure/storage-blob/dist/index.js:14673:24)
at async StorageClientContext.sendOperationRequest (/opt/app/node_modules/@azure/core-http/dist/index.js:4934:31)
at async BlockBlobClient.stageBlock (/opt/app/node_modules/@azure/storage-blob/dist/index.js:21038:20)
at async BufferScheduler.outgoingHandler (/opt/app/node_modules/@azure/storage-blob/dist/index.js:21407:17)
at async BlockBlobClient.uploadStream (/opt/app/node_modules/@azure/storage-blob/dist/index.js:21423:13)
at async AzureBlobStore.uploadStream (/opt/app/node_modules/@textlcm/storage/lib/services/blobStore/providers/azureBlobStore.js:161:51)