-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
- 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:
- create app using create-next-app,
- use azure blob storage library to upload anything
- 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)
LavransBjerkestrand, MBS9, Enngage, lorena-caia, Jake-UFurnish and 4 more
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that