[GH-ISSUE #86] YouTube not working on self-hosted instance #1459

Closed
opened 2026-04-11 05:50:44 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @hyperdefined on GitHub (Feb 20, 2023).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/86

I have my own instance hosted here: https://co.hyper.lol

YouTube videos/audios don't seem to work, and always result in a HTTP 400 error. Not sure what I can look into for this.

I am running commit 9b17300492.

image
image

Any video I try results in this. Could it be something with Cloudflare?

Originally created by @hyperdefined on GitHub (Feb 20, 2023). Original GitHub issue: https://github.com/imputnet/cobalt/issues/86 I have my own instance hosted here: https://co.hyper.lol YouTube videos/audios don't seem to work, and always result in a HTTP 400 error. Not sure what I can look into for this. I am running commit 9b17300492d589fa0a3efbd589e8edf4b0f848dd. ![image](https://cdn.upload.systems/uploads/hINMHz1G.png) ![image](https://cdn.upload.systems/uploads/H48GRZ1B.png) Any video I try results in this. Could it be something with Cloudflare?
GiteaMirror added the question label 2026-04-11 05:50:44 -05:00
Author
Owner

@wukko commented on GitHub (Feb 21, 2023):

have you run the setup script? streamable content won't work without stream salt

<!-- gh-comment-id:1438019213 --> @wukko commented on GitHub (Feb 21, 2023): have you run the setup script? streamable content won't work without stream salt
Author
Owner

@hyperdefined commented on GitHub (Feb 21, 2023):

Yes, I have ran the setup and confirmed there is a stream salt in the .env file.

<!-- gh-comment-id:1439112035 --> @hyperdefined commented on GitHub (Feb 21, 2023): Yes, I have ran the setup and confirmed there is a stream salt in the `.env` file.
Author
Owner

@wukko commented on GitHub (Feb 22, 2023):

huh. that's weird.

try adding console.log(e); above 127th line in this file, and see if there's anything in console.

i know this isn't an ideal way to debug errors, and have now added “proper debugging” to my to-do list for next update.

are you sure all modules are intact, including better-ytdl-core? have you modified any other files? is node.js version on your machine newer than minimum one (17.5)?

<!-- gh-comment-id:1439575771 --> @wukko commented on GitHub (Feb 22, 2023): huh. that's weird. try adding `console.log(e);` above 127th line [in this file](https://github.com/wukko/cobalt/blob/9b17300492d589fa0a3efbd589e8edf4b0f848dd/src/modules/processing/match.js#L127), and see if there's anything in console. i know this isn't an ideal way to debug errors, and have now added “proper debugging” to my to-do list for next update. are you sure all modules are intact, including `better-ytdl-core`? have you modified any other files? is node.js version on your machine newer than minimum one (17.5)?
Author
Owner

@hyperdefined commented on GitHub (Feb 22, 2023):

This is very strange, it now randomly works. I have no clue what changed.

I added that line and it didn't print anything, so god knows what went wrong earlier.

To answer you question, I have not modified any files. I made sure to have all modules installed (including better-ytdl-core). I am using node.js v18.14.1.

<!-- gh-comment-id:1440706596 --> @hyperdefined commented on GitHub (Feb 22, 2023): This is very strange, it now randomly works. I have no clue what changed. I added that line and it didn't print anything, so god knows what went wrong earlier. To answer you question, I have not modified any files. I made sure to have all modules installed (including `better-ytdl-core`). I am using node.js v18.14.1.
Author
Owner

@wukko commented on GitHub (Feb 23, 2023):

probably temporary network issue with youtube or something, lmk if you experience any other issues :D

<!-- gh-comment-id:1441234912 --> @wukko commented on GitHub (Feb 23, 2023): probably temporary network issue with youtube or something, lmk if you experience any other issues :D
Sign in to join this conversation.