youtube doesn't work on main instance #346

Closed
opened 2025-11-09 09:46:54 -06:00 by GiteaMirror · 12 comments
Owner

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:

  1. go to 'cobalt.tools'
  2. Paste any of Youtube video link
  3. Try to download
  4. see error

screenshots

image

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: 1. go to 'cobalt.tools' 2. Paste any of Youtube video link 3. Try to download 4. see error ### screenshots ![image](https://github.com/imputnet/cobalt/assets/84068554/da411228-849a-4e41-8ab1-5a2a6fa80a2a)
GiteaMirror added the main instance issue label 2025-11-09 09:46:54 -06:00
Author
Owner

@ihatespawn commented on GitHub (Jul 10, 2024):

api works, only youtube doesn't work

@ihatespawn commented on GitHub (Jul 10, 2024): api works, only youtube doesn't work
Author
Owner

@wukko commented on GitHub (Jul 10, 2024):

i can't replicate the issue, can you try again?

@wukko commented on GitHub (Jul 10, 2024): i can't replicate the issue, can you try again?
Author
Owner

@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.

@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.
Author
Owner

@nikunjmishra1998 commented on GitHub (Jul 10, 2024):

for local developemt it's still throwing error as shown in attached screen shot
image

@nikunjmishra1998 commented on GitHub (Jul 10, 2024): for local developemt it's still throwing error as shown in attached screen shot ![image](https://github.com/imputnet/cobalt/assets/84068554/2b9afae2-fda8-4236-866c-7b7c11c01fd2)
Author
Owner

@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

@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
Author
Owner

@wukko commented on GitHub (Jul 10, 2024):

does main instance work or not?

local instance may need a google account token to work

@wukko commented on GitHub (Jul 10, 2024): does main instance work or not? local instance may need a google account token to work
Author
Owner

@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

@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
Author
Owner

@wukko commented on GitHub (Jul 10, 2024):

then youtube might have changed something regarding your ip range (i suppose?)

@wukko commented on GitHub (Jul 10, 2024): then youtube might have changed something regarding your ip range (i suppose?)
Author
Owner

@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

@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
Author
Owner

@2shiraz 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

The same happened to me too. I guess YouTube updated something recently as now without a cookie nothing work. So just use cookies ig

@2shiraz 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 The same happened to me too. I guess YouTube updated something recently as now without a cookie nothing work. So just use cookies ig
Author
Owner

@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

@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
Author
Owner

@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.

@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.
Sign in to join this conversation.