Skip to content

[Storage Blob] Server failed to authenticate the request after upgrade to v12.12.0 #23647

Closed as not planned

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

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:

  1. 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions