Skip to content

ERR_STREAM_PREMATURE_CLOSE after 30 seconds #95

Description

@felds

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions