v20.13.0
14.4.2
I have this simple script:
import got from "got";
await got("https://google.com", { signal: AbortSignal.timeout(1) }).catch((error) => console.log(error.name));
Obviously it times out immediately.
The log is AbortError
...
Should be TimeoutError
. When I do:
await fetch("https://google.com", { signal: AbortSignal.timeout(1) }).catch((error) =>
console.log(error.name),
);
It prints TimeoutError
...
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