-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Description
At the present moment rate limit errors from YouTube present themselves a couple of different ways. Depending on which one is presented these errors don't offer clear guidance to users on how to work around them by waiting and trying again later.
We should detect these errors and display a nicer error that says something like this:
Unable to download video due to rate limiting. Please wait an hour and try again.
Examples
Here are some examples of errors that are caused by rate-limiting:
- An exception occurred: DownloadError: ERROR: The downloaded file is empty
- Download failed. creating YoutubeDL instance without local cache
- An exception occurred: DownloadError: ERROR: [youtube] SOWBtuuCDig: Video unavailable. This content isn't available, try again later. Your account has been rate-limited by YouTube for up to an hour. It is recommended to use
-t sleepto add a delay between video requests to avoid exceeding the rate limit. For more information, refer to https://github.com/yt-dlp/yt-dlp/wiki/Extractors#this-content-isnt-available-try-again-later - An exception occurred: DownloadError: ERROR: unable to download video data: HTTP Error 403: Forbidden
Also there is this error which can potentially be caused by a couple of things that I will look into:
- An exception occurred: DownloadError: ERROR: [youtube] e7Kwoatsiuk: Requested format is not available. Use --list-formats for a list of available formats
I've seen this error get reported alongside 403 errors. This can possibly be caused by rate limiting, but it might also be caused by yt-dlp being unable to find streams it works with due to a lack of JS runtime support. We have a patch for that but I don't think it's been applied to every instance yet.