node-downloader-helper: Crashing instead of catching errors.
Hello, When I attempt to download a file that doesn’t exist I get the error Error: Response status was 404 \n at ClientRequest.<anonymous> and then the project crashes.
I have the dl.on(“error”,) code. But it doesn’t seem to be doing anything.
dl.on("error", (error) => {});
I’m not sure if I’m doing something wrong.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 6
- Comments: 23 (12 by maintainers)
Commits related to this issue
- Fixed attempt to ECONNRESET at TLSWrap.onStreamRead #61 — committed to hgouveia/node-downloader-helper by hgouveia 3 years ago
- Squashed commit of the following: commit 33aab440ce6d5bf996ffec07fbadad61862811c6 Author: Jose De Gouveia <dhgouveia@gmail.com> Date: Mon Oct 4 11:12:26 2021 +0200 Incremented 1.0.19 commit a... — committed to hgouveia/node-downloader-helper by hgouveia 3 years ago
- Fixed https://github.com/hgouveia/node-downloader-helper/issues/61 — committed to Darkle/Roffline by Darkle 3 years ago
Yeah, the command doesn’t really work…
You need to clone the repo (
git clone https://github.com/hgouveia/node-downloader-helper) into yournode_modulesfolder, and then inside checkout thedevbranch, runnpm iand finallynpm run build. Then it should work 😃With
v1.0.19anddl.start().catch( err => {} );it works now. Thanks !My piece of code :
@DucksDont this sounds like a bug, i will check it this week, thanks for the report