Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

EPIPE Error #62

Open
terrorbasslines opened this issue Jan 14, 2022 · 6 comments
Open

EPIPE Error #62

terrorbasslines opened this issue Jan 14, 2022 · 6 comments
Labels
Type: Bug This is a bug report.

Comments

@terrorbasslines
Copy link

terrorbasslines commented Jan 14, 2022

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'

@terrorbasslines terrorbasslines added the Type: Question This is just a question. label Jan 14, 2022
@moonstar-x
Copy link
Owner

moonstar-x commented Jan 14, 2022

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?

@terrorbasslines
Copy link
Author

terrorbasslines commented Jan 14, 2022

@moonstar-x
Copy link
Owner

moonstar-x commented Jan 15, 2022

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.

@moonstar-x moonstar-x added Type: Bug This is a bug report. and removed Type: Question This is just a question. labels Jan 15, 2022
@DaleJV
Copy link
Contributor

DaleJV commented Jan 28, 2022

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.

@moonstar-x
Copy link
Owner

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.

@DaleJV
Copy link
Contributor

DaleJV commented Jan 28, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug This is a bug report.
Projects
None yet
Development

No branches or pull requests

3 participants