Closed MohGanji closed 1 year ago
@MohGanji can you rebase this pr against main
? The CI has been fixed so we should be able to see if tests pass here. Your tests will also need to be tweaked to use async/await like the rest of the tests were so that linting passes.
Description
Calling
fetch()
on a server that responds with an invalid URL breaks the execution of the program with the following unhandled error:Steps to reproduce:
fetch()
being wrapped in a try/catch block.References
This behavior is inconsistent with current node-fetch. Similar issue reported #1386 and fixed #1387 in node-fetch.