Cookies & oAuth Error #386

Closed
opened 2025-11-09 09:48:05 -06:00 by GiteaMirror · 13 comments
Owner

Originally created by @hextor1 on GitHub (Aug 8, 2024).

cookies.json:
{
"youtube_oauth": [
"access_token=xxxxxx; refresh_token=xxxxx; scope=https://www.googleapis.com/auth/youtube-paid-content https://www.googleapis.com/auth/youtube; token_type=Bearer; expiry_date=2024-08-09T08:12:07.911Z"
  ]
}

.env
API_URL=https://api.mywebsitename.net/ API_PORT=9004 API_NAME=eu-nl COOKIE_PATH=/cookies.json

Error I am facing

{
"status": "error",
"text": "couldn't get this youtube video because it requires an account to view.

this limitation is done by google to seemingly stop scraping, affecting all 3rd party tools and even their own clients.

try again, but if issue persists, check the <a class="text-backdrop link" href="https://status.cobalt.tools/" target="_blank">status page or <a class="text-backdrop link" href="https://github.com/imputnet/cobalt" target="_blank">create an issue on github."
}

Originally created by @hextor1 on GitHub (Aug 8, 2024). **cookies.json:** { "youtube_oauth": [ "access_token=xxxxxx; refresh_token=xxxxx; scope=https://www.googleapis.com/auth/youtube-paid-content https://www.googleapis.com/auth/youtube; token_type=Bearer; expiry_date=2024-08-09T08:12:07.911Z"   ] } **.env** `API_URL=https://api.mywebsitename.net/ API_PORT=9004 API_NAME=eu-nl COOKIE_PATH=/cookies.json` **Error I am facing** { "status": "error", "text": "couldn't get this youtube video because it requires an account to view.<br><br>this limitation is done by google to seemingly stop scraping, affecting all 3rd party tools and even their own clients.<br><br>try again, but if issue persists, check the <a class=\"text-backdrop link\" href=\"https://status.cobalt.tools/\" target=\"_blank\">status page</a> or <a class=\"text-backdrop link\" href=\"https://github.com/imputnet/cobalt\" target=\"_blank\">create an issue on github</a>." }
GiteaMirror added the instance hosting help label 2025-11-09 09:48:05 -06:00
Author
Owner

@KwiatekMiki commented on GitHub (Aug 8, 2024):

> [!] The token generated by this script is sensitive and you should not share it with anyone!

you just shared a sensitive token.

you should remove it from the comment out and remove the original version

while i was writing this wukko edited it

@KwiatekMiki commented on GitHub (Aug 8, 2024): ~~> [!] The token generated by this script is sensitive and you should not share it with anyone!~~ ~~you just shared a sensitive token.~~ ~~you should remove it from the comment out and remove the original version~~ while i was writing this wukko edited it
Author
Owner

@wukko commented on GitHub (Aug 8, 2024):

immediately change the google account password and revoke all sessions, why did you ignore security warnings?

@wukko commented on GitHub (Aug 8, 2024): ***immediately*** change the google account password and revoke all sessions, why did you ignore security warnings?
Author
Owner

@wukko commented on GitHub (Aug 8, 2024):

do not EVER post contents of your cookies file ANYWHERE

@wukko commented on GitHub (Aug 8, 2024): do not EVER post contents of your cookies file ANYWHERE
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

bro please give me the solution now I removed my cookie

do not EVER post contents of your cookies file ANYWHERE

@hextor1 commented on GitHub (Aug 8, 2024): bro please give me the solution now I removed my cookie > do not EVER post contents of your cookies file ANYWHERE
Author
Owner

@dumbmoron commented on GitHub (Aug 8, 2024):

your cookies file is probably located elsewhere on the filesystem other than /cookies.json

@dumbmoron commented on GitHub (Aug 8, 2024): your cookies file is probably located elsewhere on the filesystem other than `/cookies.json`
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

your cookies file is probably located elsewhere on the filesystem other than /cookies.json

Please see here is my file location I cannot find anything I just created cookie.json file from my side its ubuntu server. i am using without dockerr and just git clone cobalt zip

image

@hextor1 commented on GitHub (Aug 8, 2024): > your cookies file is probably located elsewhere on the filesystem other than `/cookies.json` Please see here is my file location I cannot find anything I just created cookie.json file from my side its ubuntu server. i am using without dockerr and just git clone cobalt zip ![image](https://github.com/user-attachments/assets/40de0b96-fa76-4a4d-b564-2a3a3d77453a)
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

your cookies file is probably located elsewhere on the filesystem other than /cookies.json

Please see I am facing an error when testing an API in local server because of youtube oauth so please guide me about my cookie
image

@hextor1 commented on GitHub (Aug 8, 2024): > your cookies file is probably located elsewhere on the filesystem other than `/cookies.json` Please see I am facing an error when testing an API in local server because of youtube oauth so please guide me about my cookie ![image](https://github.com/user-attachments/assets/47bcfe3e-7f45-4be3-8c40-b754533c6b7a)
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

453660390_891229946241979_2444131851207030782_n

453422370_1187796592530004_2802561811629276666_n

I have tried with docker as well, I'm getting same error

@hextor1 commented on GitHub (Aug 8, 2024): ![453660390_891229946241979_2444131851207030782_n](https://github.com/user-attachments/assets/946a8fb8-46cf-4d05-b35e-40b428802fbf) ![453422370_1187796592530004_2802561811629276666_n](https://github.com/user-attachments/assets/2a950658-e726-49e0-b269-b051b0c8c579) I have tried with docker as well, I'm getting same error
Author
Owner

@dumbmoron commented on GitHub (Aug 8, 2024):

Screenshot 2024-08-08 at 14 51 36
@dumbmoron commented on GitHub (Aug 8, 2024): <img width="972" alt="Screenshot 2024-08-08 at 14 51 36" src="https://github.com/user-attachments/assets/4d3606bd-1879-4776-b292-2f6bbe18d545">
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

Screenshot 2024-08-08 at 14 51 36

Getting same error when uncomment the volumes and next line

@hextor1 commented on GitHub (Aug 8, 2024): > <img alt="Screenshot 2024-08-08 at 14 51 36" width="972" src="https://private-user-images.githubusercontent.com/136796770/356228550-4d3606bd-1879-4776-b292-2f6bbe18d545.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxMjE4MDYsIm5iZiI6MTcyMzEyMTUwNiwicGF0aCI6Ii8xMzY3OTY3NzAvMzU2MjI4NTUwLTRkMzYwNmJkLTE4NzktNDc3Ni1iMjkyLTJmNmJiZTE4ZDU0NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwOFQxMjUxNDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MTNiOWQ2ZTA0NDVhNDRhMmM1N2ZkNGM4MTY5NmQzMzBiYWQ4YWM3NWFjMWQzYjViNWViN2I4ZTEzNmVhODM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mtxgfJ2Niud729JZtuOnd0B6A_cun6hTqh-cVMghYKw"> Getting same error when uncomment the volumes and next line
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

image

Same error @dumbmoron

@hextor1 commented on GitHub (Aug 8, 2024): ![image](https://github.com/user-attachments/assets/bb63b787-da86-4668-82e5-c27136e41d93) Same error @dumbmoron
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

your screenshot isn't working

Refresh your page my screenshot is showing

@hextor1 commented on GitHub (Aug 8, 2024): > your screenshot isn't working Refresh your page my screenshot is showing
Author
Owner

@hextor1 commented on GitHub (Aug 8, 2024):

@wukko Hi bro i am delte my previous issue please check it here

@hextor1 commented on GitHub (Aug 8, 2024): @wukko Hi bro i am delte my previous issue please check it here
Sign in to join this conversation.