fent/node-m3u8stream

ERR_STREAM_PREMATURE_CLOSE after 30 seconds

Opened this issue · 0 comments

felds commented

When streaming to Discord, it hangs up after 30 seconds with the status ERR_STREAM_PREMATURE_CLOSE.

It happens right after the progress event for the 6th chunk. Messing with the function parameters changes nothing for better or for worse.

Here's a minimal demo that triggers the bug:
https://gist.github.com/felds/13d7439c9ebfc96c849a1fc85cff8aa0

I'm on node v16.11.0 and these are my deps:

├── @discordjs/opus@0.5.3
├── @discordjs/voice@0.6.0
├── @types/node@16.10.3
├── discord.js@13.2.0
├── libsodium-wrappers@0.7.9
├── nodemon@2.0.13
├── sodium@3.0.2
├── ts-node@10.2.1
├── typescript@4.4.3
└── ytdl-core-discord@1.3.1