mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-09 15:24:14 -05:00
Cobalt instance cannot retrieve YouTube cookies #543
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 @lpwyz on GitHub (Nov 6, 2024).
problem description
I cloned the Cobalt project here and it is also running normally. At this point, I enabled incognito browsing mode and opened: https://www.google.com/device Then I ran npm to token: YouTube
After waiting for a few minutes, I kept getting the following error message:
your instance configuration
No response
@KwiatekMiki commented on GitHub (Nov 6, 2024):
you need to use pnpm, not npm, to install. it never told you to use npm.
https://pnpm.io/installation
@lpwyz commented on GitHub (Nov 6, 2024):
Hello, please take a closer look at the image above. I can assure you that it is a dependency for pnpm install. I used both npm and pnpm, but it still doesn't work. I can confirm that my local cobalt project dependency has been installed. Is there a problem with my steps? Here are my specific steps,
(1) After pulling the cobalt project, pnpm install installs dependencies
(2) Open Google Chrome in incognito mode and enter the address: https://www.google.com/device
(3) Open a new window in incognito Google Chrome, go to www.youtube.com, and log in to your account
(4) Running in the cobalt project API directory: npm run token: YouTube
Is there any problem with my steps above
@lpwyz commented on GitHub (Nov 6, 2024):
@lpwyz commented on GitHub (Nov 6, 2024):
And I found that every time I input:
https://www.google.com/device Afterwards, the address will change to:
https://accounts.google.com/o/oauth2/device/usercode?ddm=1&flowName=DeviceOAuth
@dumbmoron commented on GitHub (Nov 6, 2024):
what’s happening here is that the request made to youtube is timing out. you could try increasing the timeout for requests by adding this to the top of
api/src/util/generate-youtube-tokens.js:@lpwyz commented on GitHub (Nov 6, 2024):
@lpwyz commented on GitHub (Nov 7, 2024):
Can someone help me? Paid consultation is also possible
@lostdusty commented on GitHub (Nov 7, 2024):
i suspect that node isnt using the vpn connection
@lostdusty commented on GitHub (Nov 7, 2024):
here is something i found: https://stackoverflow.com/a/32055112
in other words, how is your vpn connection managed? what service are you using?
@lpwyz commented on GitHub (Nov 7, 2024):
I am very troubled. The VPN I am using with Clashx has already set up a global connection and entered the command in the terminal management:
export http_proxy= http://127.0.0.1:7890
export https_proxy= http://127.0.0.1:7890
export all_proxy=socks5://127.0.0.1:7890
But even after running it, it still shows that I can't get YouTube or cookies, and I'm a little suspicious of myself.
@lpwyz commented on GitHub (Nov 7, 2024):
Can anyone make a video for me to learn
@wukko commented on GitHub (Nov 7, 2024):
i think your proxy times out youtube, this is what the error suggests
@lpwyz commented on GitHub (Nov 7, 2024):
Do you have a recommended VPN? I'll give it a try
@lostdusty commented on GitHub (Nov 7, 2024):
you could try openvpn
@wukko commented on GitHub (Nov 7, 2024):
pretty sure regular protocols are blocked in china
@lpwyz commented on GitHub (Nov 7, 2024):
Got it, is that there's no way to open a VPN
@lpwyz commented on GitHub (Nov 7, 2024):
Is it true that even if I open a VPN in China, there's no way, right?