mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-11 00:17:01 -05:00
youtube doesn't work on main instance #346
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 @nikunjmishra1998 on GitHub (Jul 10, 2024).
bug description
Cobalt tools not working for any of the youtube video download
reproduction steps
steps to reproduce the described behavior.
here's an example of what it could look like:
screenshots
@ihatespawn commented on GitHub (Jul 10, 2024):
api works, only youtube doesn't work
@wukko commented on GitHub (Jul 10, 2024):
i can't replicate the issue, can you try again?
@wukko commented on GitHub (Jul 10, 2024):
for future reference: there’s a dedicated template for issues related to the main instance.
if the problem is fixed on your side, close this issue as completed.
@nikunjmishra1998 commented on GitHub (Jul 10, 2024):
for local developemt it's still throwing error as shown in attached screen shot

@nikunjmishra1998 commented on GitHub (Jul 10, 2024):
curl --location 'http://localhost:9000/api/json'
--header 'accept: application/json'
--header 'content-type: application/json'
--header 'sec-ch-ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"'
--header 'sec-ch-ua-mobile: ?0'
--header 'sec-ch-ua-platform: "Windows"'
--header 'sec-fetch-dest: empty'
--header 'sec-fetch-mode: cors'
--header 'sec-fetch-site: cross-site'
--data '{
"url": "https://youtu.be/fdhEPblKfdY",
"aFormat": "mp3",
"isAudioOnly": true,
"isNoTTWatermark": true,
"vQuality": "720"
}'
Above Curl I am using
@wukko commented on GitHub (Jul 10, 2024):
does main instance work or not?
local instance may need a google account token to work
@nikunjmishra1998 commented on GitHub (Jul 10, 2024):
Yes, Main instance worked.
but till before an 2 hour ago local instance also was worked without any google account token
@wukko commented on GitHub (Jul 10, 2024):
then youtube might have changed something regarding your ip range (i suppose?)
@nikunjmishra1998 commented on GitHub (Jul 10, 2024):
it should not because I tried to develop today after so long. And I also not made that much amount of request to youtube
@2shiraz commented on GitHub (Jul 10, 2024):
The same happened to me too. I guess YouTube updated something recently as now without a cookie nothing work. So just use cookies ig
@nikunjmishra1998 commented on GitHub (Jul 11, 2024):
No, It's Youtubei.js Package update issue. They have updated their package yesterday. So Use the 10.1.0 latest version and it's working without cookie
@wukko commented on GitHub (Jul 11, 2024):
we also updated cobalt to be compatible with the new version yesterday. if you’re running cobalt in a docker container with watchtower, it should’ve updated itself by now.