Open minjaes opened 3 weeks ago
I'm trying to listen to error event something like following:
const audioStream = ytdl(url, {}); audioStream.pipe(fs.createWriteStream(outputFilePath)).on('error', (error: Error) => ...)
When an error occurs, it doesn't get caught by .on and causes the backend to crash instead. It also looks like other events emitted by stream.emit is not being handled correctly.
.on
stream.emit
Describe the bug
I'm trying to listen to error event something like following:
When an error occurs, it doesn't get caught by
.on
and causes the backend to crash instead. It also looks like other events emitted bystream.emit
is not being handled correctly.