Skip to content

Expected signal to be an instanceof AbortSignal - azure/storage-blob  #28059

@priyanshusingh18

Description

@priyanshusingh18
  • Package Name: azure/storage-blob
  • Package Version: 12.17.0
  • Operating system: macOS 12.6
  • nodejs
    • version: v20.5.1
  • typescript
    • version: 5
  • Nextjs
    • version: 13.5.2

Describe the bug
Getting TypeError: Expected signal to be an instanceof AbortSignal on uploading anything to blob storage in production build.
It is working fine in development. Error only comes in bundle.

To Reproduce
Steps to reproduce the behavior:

  1. create app using create-next-app,
  2. use azure blob storage library to upload anything
  3. bundle it, and try to upload some file.

Expected behavior
To upload to cloud

code

  const blobServiceClient = BlobServiceClient.fromConnectionString(
    process.env.AZURE_STORAGE_KEY!
  );
const containerClient = blobServiceClient.getContainerClient(containerName);
  const blobName = fileName.toLowerCase() + new Date().getTime();
  const blockBlobClient = containerClient.getBlockBlobClient(blobName);
  const uploadResponse = await blockBlobClient.uploadData(bytes)

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)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 teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions