-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
"Sign in to confirm you’re not a bot." error with YouTube videos #1588
Comments
Also having this issue, if anyone has a solution or a quick and dirty workaround, I'd be down |
downloading youtube videos through tor might be a workaround for this problem. just tested this, it works
|
This other repo fixed the issue by adding support for Oauth2, essentially allowing people to create dummy accounts for the bots to log in with: imputnet/cobalt#551 Is this something we'd have to request support for in lavaplayer? Or is MusicBot responsible for querying the youtube API? |
I'm facing the same issue:
|
I can confirm that with my VPS Server, it logs a "Sign in to confirm you’re not a bot." error everytime I want to play a youtube video on my server. HOWEVER, just recently I found out my old instance of my bot in my local machine work perfectly with youtube. |
a bot called "Nero Bot" manages to still play YT videos- would be worth looking into how they manage past the whole thing with their "nodes". |
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
As this is an issue that affects every project using YouTube, several communities have come across a few discoveries. Here's a summary of what I've seen:
In my opinion, I see three main ways JMusicBot could move forward:
Only my two cents though, no discussion around this has happened yet. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This started affecting me on a Hetzner IP range yesterday. Not a solution per se, but managed to temporarily workaround it by routing my jmusicbot Docker container through my WireGuard Docker container running a config from a paid VPN service. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as spam.
This comment was marked as spam.
So is there any solution or workaround for this yet? |
The only workaround at the moment is to play music from a non-banned IP address. We're currently waiting for upstream to implement OAuth2 login & then consider adding it to JMusicBot. |
This comment was marked as duplicate.
This comment was marked as duplicate.
You could also route the requets through warp for now. Seems to work most of the time and does not require a paid vpn service. services:
jmusicbot:
image: ghcr.io/yojoshb/jmusicbot-docker
container_name: jmusicbot
# environment:
# - BOT_VERSION=0.3.9 # You can omit the environment variable if you just want to run the latest version
volumes:
- ./config:/config
restart: unless-stopped
network_mode: "service:warp"
depends_on:
- warp
warp:
image: caomingjun/warp
restart: unless-stopped
ports:
- '1080:1080'
environment:
- WARP_SLEEP=2
# - WARP_LICENSE_KEY= # optional
cap_add:
- NET_ADMIN
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv4.conf.all.src_valid_mark=1
volumes:
- ./data:/var/lib/cloudflare-warp
|
How would we do this for pterodactyl? I am running the bot via the pterodactyl egg. |
Thanks, it's work! |
Note Wrap Workaround is only working on Tested & Working version: "3"
services:
discord-bot:
container_name: Hr-Music-bot-Discord
restart: unless-stopped
image: harshraj9812/hr-bot-jmusicbot:0.4.3
labels:
- "com.centurylinklabs.watchtower.enable=false"
environment:
# BOT TOKEN
- TOKEN=
network_mode: "service:warp"
depends_on:
- warp
warp:
container_name: Wrap-Hr-Music-bot-Discord
image: caomingjun/warp
restart: unless-stopped
ports:
- '1080:1080'
environment:
- WARP_SLEEP=2
# - WARP_LICENSE_KEY= # optional
cap_add:
- NET_ADMIN
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv4.conf.all.src_valid_mark=1
volumes:
- ./data:/var/lib/cloudflare-warp
|
Can you build an arm64 image, or teach me how to do it for myself? Thank you so much! |
The upstream project has recently implemented OAuth2 authentication. I've just gotten around to write an implementation for it in #1670. I expect for this to be part of JMusicBot 0.4.5, to be released soon. It should be trivial to set up, but I'll comment with quick instructions once 0.4.5 releases. |
This comment was marked as abuse.
This comment was marked as abuse.
The bot i'm running was recently hit by this issue. The thing is, the bot hadn't played any music for weeks, which made me wonder, is the bot constantly connecting to YT even when not playing music? If yes, what is the reasoning behind this? |
@zaughon |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
i am facing the same issue.maybe open youtube in private window might solve the problem. |
Thanks for all the thoughts & suggested workarounds everyone! We are now moving forward with implementing a way to login to an (alternative/burner!!!) Google account using OAuth2: As plenty of workarounds have been suggested here & this issue's comments have somewhat derailed into chatter (which is probably cluttering the notifications of those subscribed to this issue), I'm going to lock it for now. Once account login has been implemented & released, I'll comment again with quick instructions on authorizing JMusicBot with your Google account. |
Unfortunately, YouTube has begun to crack down on the OAuth2 workaround, so it won't be viable. For people on VPS' (which are the most affected by this issue) might be able to use their (/64 or larger) IPv6 address space to workaround the IP bans. I'll see if I can get that implemented in JMusicBot, hopefully some time in the near future. |
Bug Description
Playing YouTube videos may fail with the error "Sign in to confirm you’re not a bot."
YouTube seems to have recently rolled out this measure. It's affecting not only third party players/clients, but also YouTube's official website & apps when logged out. Several communities have come across a few discoveries. Here's a summary of what I've seen:
We are in the process of implementing OAuth2 login for JMusicBot in #1670. Use this with an alternative/burner!!! Google account to play tracks again on blocked IPs.
Checklist
The text was updated successfully, but these errors were encountered: