Closed LetsDoughNut closed 7 years ago
Do you have a url where this happens consistently?
If this happens primarily in ytdl-core, this issue is more related to how ytdl-core makes the request, not this module.
You can catch the error by adding an error
listener to the stream that ytdl()
returns.
let stream = ytdl(url);
stream.on('error', (err) => {
// do something with `err`
});
Going to close this, feel free to open the issue on the ytdl-core repo with more information so I can help debug.
This gets a return then crashes my application while just playing music. Nothing triggered this to happened, this just happens randomly