TypeError: scheduler.do is not a function at BlockBlobClient.uploadStream (Clients.js:1954) #17831
Closed
3 of 6 tasks
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Version 93.0.4577.82 (Official Build) (x86_64)
Describe the bug
I am trying to upload a blob to the blob storage. As I am trying to get the progress while uploading the blob I use the uploadStream method like so:
const blockBlobClient = sourceClient.getBlockBlobClient(blobName);
const blockSize = 4 * 1024 * 1024; // the block size in the uploaded block blob
const uploadBlobResponse = await blockBlobClient.uploadStream(file, blockSize, 20, {onProgress: (ev) => console.log(ev)});
But as soon as the upload gets to the last line of code I get this error:
TypeError: scheduler.do is not a function at BlockBlobClient.uploadStream (Clients.js:1954)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
File should be uploaded without issue reporting back the progress.
The text was updated successfully, but these errors were encountered: