moonstar-x/discord-music-24-7

EPIPE Error

terrorbasslines opened this issue · 6 comments

Hi, I added own youtube links to queue.txt
After run this bot its connected on the channel, but with EPIPE error. When I added back your deafult youtube links there, it worked without this error. What do i have to do to make it work? Thanks

Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:164:15)
at writeGeneric (node:internal/stream_base_commons:155:3)
at Socket._writeGeneric (node:net:795:11)
at Socket._write (node:net:807:8)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at Socket.Writable.write (node:internal/streams/writable:334:10)
at PassThrough.ondata (node:internal/streams/readable:754:22)
at PassThrough.emit (node:events:390:28)
at PassThrough.Readable.read (node:internal/streams/readable:527:10) {
errno: -4047,
code: 'EPIPE',
syscall: 'write'

Hey there, can you post here one of the links that gives out the error?

Or another question, are the videos you're trying to add private?

Hey, so I just tried it out myself and they really didn't work. I suspect it's got something to do with the audio formats being chosen, since I downloaded the first video myself with an opus codec and it worked with that instead of the m4a one that the bot seems to be choosing.

I'm gonna see if I can find a way to filter the formats properly to get an opus one whenever possible.

I also see that a related issue is open in the repo of the package I use: fent/node-ytdl-core#816

For now, try looking for an alternative link to the video or download it using something like a "youtube to mp3" service and put the downloaded mp3s in the data/local-music folder.

I am also running into this error. I assume it has to do with the bot choosing the m4a codec opposed to the opus. It seems to do it for most of my songs as well.

Any update on the fix?

Besides that, thank you for this bot. It's a great addition to the server.

I'm gonna try to see if I can find a way to specify what codec to use for the youtube audio.

For now try looking for another link for the same song or try downloading the song and place it in the local music folder.

I am also running into this error. I assume it has to do with the bot choosing the m4a codec opposed to the opus. It seems to do it for most of my songs as well.

Any update on the fix?

Besides that, thank you for this bot. It's a great bot.