The Stream API documentation suggests that a third argument of createRetryStream
is available for retry streams at https://github.com/sindresorhus/got/blob/39273481b67be41207c4efc31fc36e289eb53c88/documentation/3-streams.md#createretrystream. Also see
got/source/as-promise/index.ts
Lines 137 to 154 in 3e82b50
Related to #1691 β and possible also #2073, #1691, and #1852.
The documentation suggests this third argument exists, but it does not and usage of it results in the error createRetryStream is not a function
.
It should function as documented, merging options passed, e.g. createRetryStream({ url: 'https://some-new-url.com' });
.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too