Closed nfearnley closed 4 years ago
Oh, and to be specific, I was running into this issue when using ytdl-core. I've looked through the code and have no idea how it was sending a url of undefined to miniget, but it was somehow. If this bugfix could be added to a new version of ytdl-core, it would solve a lot of my problems.
that issue was fixed a few days ago on ytdl-core, make sure you're on latest version
There is no try/catch in doDownload, so any thrown errors bubble up until they reach the node process handler, and will end up crashing the program. Here's an example of such a program:
The error in this instance occurs because the url is not a string.
I've put a try/catch around the miniget.promise() call, but it fails to catch the raised error inside doDownload, and is never triggered. Instead I get this output: