-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update BlockBlobClient.uploadStream to use NodeJS.ReadableStream instead of Readable #11484
Comments
Did a bit more digging seems like I've been confused by new vs old streams using I'll leave this open for others to comment. Maybe we can add something like this to the docs or examples? |
Hey, @Ethan-Arrowood Thanks for reaching us and good to know you have found the right approach. Yes, according to Readable's definition, using wrap is the right approach. This is a valuable topic related to old vs new stream, and might help others as well. Thanks, |
@jiacfan What are the next steps here? Are we looking at updating docs or something else? |
This is part of Node.js usage which might be met when using old libraries by small groups of users. We tried to create a PR, and the comment added might add overhead for most common users, so temporarily we prefer to leave this as a Github issue. And will continuously tracking if there're more feedbacks coming, we can optimize the doc further if this becomes a common issue. |
Close the issue as it's a node.js usage related pattern and welcome feedback if anyone hit similar isse. |
Dev containerservice microsoft.container service 2020 11 01 (Azure#11588) * Adds base for updating Microsoft.ContainerService from version stable/2020-09-01 to version 2020-11-01 * Updates readme * Updates API version in new specs and examples * add autoupgradeprofile to 2020-11-01 (Azure#11363) * add autoupgradeprofile * add autoupgrader profile to mc * format change Co-authored-by: Xiahe Liu <Xiahe.Liu@microsoft.com> * add pod subnet id on agentpool (Azure#11310) * aks: add pod identity profile spec (Azure#11366) * add private dns zone property in 2020-11-01 (Azure#11311) Co-authored-by: Li Ma <lima2@microsoft.com> * Remove invalid pattern and adjust description (Azure#11312) * aks: fix pod identity profile field names (Azure#11484) * aks: add missing `podIdentityProfile.enabled` field * aks: typo * add non upgrade channel (Azure#11492) Co-authored-by: Xiahe Liu <Xiahe.Liu@microsoft.com> * Make identityProfile mutable (Azure#11458) * Add KubeletConfig and LinuxOSConfig specs (Azure#11490) * aks: update readme tag for 1101 (Azure#11472) * aks: update readme tag * aks: add `2020-11-01-only` * resovle merge conlicts to master, adding recent master change to dev branch (Azure#11604) Co-authored-by: Xiahe Liu <Xiahe.Liu@microsoft.com> Co-authored-by: Xiahe Liu <Xiahe.Liu@microsoft.com> Co-authored-by: Paul Miller <pmiller@microsoft.com> Co-authored-by: hbc <me@hbc.rocks> Co-authored-by: Super <mali_no2@hotmail.com> Co-authored-by: Li Ma <lima2@microsoft.com> Co-authored-by: Qingchuan Hao <haoqingchuan@hotmail.com> Co-authored-by: Tongyao Si <tosi@microsoft.com> Co-authored-by: Bo Wang <61758179+bowang-666@users.noreply.github.com> Co-authored-by: Phoenix He <tih@microsoft.com>
Describe the bug
Due to this method using
Readable
type rather thanNodeJS.ReadableStream
type I cannot pass a standard Node.js readable stream. With this change, users can still passReadable
types to the method since it implementsNodeJS.ReadableStream
.I previously tried to fix this with #11483 but didn't anticipate other methods require the
Readable
type. Maybe i misunderstand the difference between it andNodeJS.ReadableStream
. In addition, maybe I need to do something in my own code.In my specific instance I'm using Node.js and Busboy which defines its file type as
NodeJS.ReadableStream
(https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/busboy/index.d.ts#L41)The text was updated successfully, but these errors were encountered: