Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Sign in to confirm you’re not a bot #21

Closed
LostAndDead opened this issue Jun 10, 2024 · 31 comments
Closed

Error: Sign in to confirm you’re not a bot #21

LostAndDead opened this issue Jun 10, 2024 · 31 comments
Labels
question Further information is requested

Comments

@LostAndDead
Copy link

Describe the bug

Any playback requests result in an error, playback doesnt happen.

Environment

Docker

  • @distube/ytdl-core version: 4.13.4
  • Node.js version: 18.7.0
  • Operating system: Ubuntu/Docker

Full error stack:

(Usenode --trace-warnings ...to show where the warning was created) /usr/app/node_modules/@distube/ytdl-core/lib/info.js:91 return new UnrecoverableError(playability.reason || (playability.messages && playability.messages[0])); ^ Error: Sign in to confirm you’re not a bot at privateVideoError (/usr/app/node_modules/@distube/ytdl-core/lib/info.js:91:12) at exports.getBasicInfo (/usr/app/node_modules/@distube/ytdl-core/lib/info.js:54:22) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Seems this is likely something youtube have done, not sure if it can be circumvented or not.

@LostAndDead LostAndDead added the bug Something isn't working label Jun 10, 2024
@skick1234
Copy link

skick1234 commented Jun 10, 2024

YouTube checks your IP and prevents you from playing music if it is from a data center.
You have to log in to resolve it.
https://github.com/distubejs/ytdl-core?tab=readme-ov-file#cookies-support.

@skick1234 skick1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 10, 2024
@skick1234 skick1234 added question Further information is requested and removed bug Something isn't working labels Jun 10, 2024
@MikeyA-yo
Copy link

YouTube checks your IP and prevents you from playing music if it is from a data center. You have to log in to resolve it. https://github.com/distubejs/ytdl-core?tab=readme-ov-file#cookies-support.

I have logged in, and still see this error, please i need an update

@LostAndDead
Copy link
Author

I too was still having this error, I was using mine for a discord bot. Turns out I was IP banned by YouTube, they are cracking down hard on these kind of things it seems.

@skick1234
Copy link

I have logged in, and still see this error, please i need an update

You just need to update your mind, or tell youtube to remove the restriction. This cannot be fixed by an update.

@skick1234
Copy link

I too was still having this error, I was using mine for a discord bot. Turns out I was IP banned by YouTube, they are cracking down hard on these kind of things it seems.

As I said above, YouTube prevents many IP subnet from playing videos without logging in. You have to add cookies or change your ip.

@MikeyA-yo
Copy link

I have logged in, and still see this error, please i need an update

You just need to update your mind, or tell youtube to remove the restriction. This cannot be fixed by an update.

well it works locally for me, only that when deployed i get that error, also i tried using chunks instead i wonder if it will work

@MikeyA-yo
Copy link

Dude seriously? there's a bug in sign-in, i mean other's and i put cookie and get nothing

@Dmytro-Tihunov
Copy link

i added cookie and created agent it works right now :)

@PatrykPatryk5
Copy link

it didn't do anything for me

@Dmytro-Tihunov
Copy link

@PatrykPatryk5 everything is said in readme just follow

@PatrykPatryk5

This comment has been minimized.

@MikeyA-yo

This comment has been minimized.

@MikeyA-yo

This comment has been minimized.

@PatrykPatryk5

This comment has been minimized.

@PatrykPatryk5

This comment has been minimized.

@MikeyA-yo

This comment has been minimized.

@MikeyA-yo

This comment has been minimized.

@PatrykPatryk5

This comment has been minimized.

@PatrykPatryk5

This comment has been minimized.

@MikeyA-yo

This comment has been minimized.

@MikeyA-yo

This comment has been minimized.

@PatrykPatryk5

This comment has been minimized.

@skick1234
Copy link

If you have this error, YouTube just prevents your IP from playing videos without logging in. You need to log an account then get the cookies follow the guide in the readme.

image

@qubiack
Copy link

qubiack commented Aug 1, 2024

I have all cookies & this fix download locally. But on the server it doesn't help at all. Any other ideas? Should I use the same IP to loggin?


I use right now different login on server and different locally and right now it is working.

@dbaldassi
Copy link

Hi,
I have added cookies according to the doc, and it works on my server but only for a short period of time, like 15mn or so.
Is there anything to do to make it permanent ?

@mr-flame7892
Copy link

Hi, I have added cookies according to the doc, and it works on my server but only for a short period of time, like 15mn or so. Is there anything to do to make it permanent ?

Personally, I use cookies of an account which I never use (in order to never disrupt the cookies of this account). You export the cookies of this account, then you delete all the YouTube cookies from your browser in order to log out and normally it will work for a while.

@dbaldassi
Copy link

Based on what you said, I have taken the cookie in a private window, so the browser would not save the cookies,
it seems to work better now. I'll let you know if I still encounter the issue later

@hw630590
Copy link

Instead of cookies, I just use a socks5 proxy which works and is fast and it isn't blocked by YouTube.

@Kinuseka
Copy link

Using proxies have been working for me. Although not all proxies will work, russian proxies have a higher chance of bypass though.

@MikeyA-yo
Copy link

Instead of cookies, I just use a socks5 proxy which works and is fast and it isn't blocked by YouTube.

it's not free tho.

@damonwindsor97
Copy link

Instead of cookies, I just use a socks5 proxy which works and is fast and it isn't blocked by YouTube.

would you mind saying who your provider is? I've been wasting money trying to find something decent haha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests