mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-23 14:51:22 -05:00
[GH-ISSUE #86] YouTube not working on self-hosted instance #1459
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.Any video I try results in this. Could it be something with Cloudflare?
@wukko commented on GitHub (Feb 21, 2023):
have you run the setup script? streamable content won't work without stream salt
@hyperdefined commented on GitHub (Feb 21, 2023):
Yes, I have ran the setup and confirmed there is a stream salt in the
.envfile.@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)?@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.@wukko commented on GitHub (Feb 23, 2023):
probably temporary network issue with youtube or something, lmk if you experience any other issues :D