[Youtube Issue] Error when loading from YouTube (429/captcha form)
- Dominant language
- Java
- Stars
- 5.8k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
YouTube has recently starting enforcing ratelimits. This is likely because streaming the data directly harms their service (as they receive no ad revenue when videos are streamed in this way). When your IP is ratelimited, no data from YouTube can be loaded, and attempting to load anything from YouTube will result in an error.
**Does this affect you?**
* If you see `Invalid status code for video page response: 429` in error messages, it means that your IP has been ratelimited.
* If you see `Sorry for the interruption. We have been receiving a large volume of requests from your network.` in error messages, it means that YouTube is is requesting a captcha for your requests.
**Solution**
There is no solid solution to this at the moment. Your best options are:
- Turn off the bot for a few days (and don't attempt to use anything that connects to YouTube from the same IP address)
- Host from a different IP address
**Version Info**
This affects all connections to YouTube, regardless of which version of JMusicBot is used.
**Additional Info**
Here's the information that YouTube/Google provides when a music bot (or any service really) gets ratelimited:
> Our systems have detected unusual traffic from your computer network. Please try your request again later. Why did this happen?
> This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the Terms of Service. The block will expire shortly after those requests stop.
> This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests. If you share your network connection, ask your administrator for help — a different computer using the same IP address may be responsible. Learn more
> Sometimes you may see this page if you are using advanced terms that robots are known to use, or sending requests very quickly.
Contributor guide
No contributing guide indexed for this repository
Research direction
The report names no files, tests, or entry points, and states that there is no solid solution. Start by reproducing the 429 or captcha response and reviewing the YouTube loading path; the issue does not define a concrete change or a verifiable done state.
Written by the indexing model from the issue text.
Assessment
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100