Open UnlimitedBytes opened 1 year ago
@sindresorhus maybe?
The problem seems to be caused by https://github.com/sindresorhus/p-limit/commit/7b978e3d6801ffdd4ee29b3329b4a32d617607fc#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346R38
// @copperwall
BUMP @sindresorhus @copperwall please I will use the package but that blocks me from using it...
Any updates? I'm having the same issue
It's node-fetch's issue https://github.com/node-fetch/node-fetch/issues/1801.
Describe the bug
I created a simple basic application which uses
node-fetch
to send some HTTP(S)-Requests and usesp-limit
to reduce the amount of requests send at the same time. The problem is when thenode-fetch
requests get aborted by anAbortController
they throw insidep-limit
so I can't handle theAbortError
.Reproduction
I'm providing a stripdown version of the application which only contains the parts necessary to trigger the bug.
Here is the stripdown version with
p-limit
which generates the following output:
Here is the stripdown version without
p-limit
which generates the following output:
Severity
blocking all usage of p-limit - as I can't abort requests without crashing the entire application.
Best regards UnlimitedBytes