yt-dlp: --no-abort-on-error --ignore-errors do not work on Youtube private videos

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

France

Provide a description that is worded well enough to be understood

Hello there,

The following command should be provoke an error thanks to the options passed --no-abort-on-error --ignore-errors, but unfortunately it is:

$ yt-dlp --no-abort-on-error --ignore-errors --restrict-filenames -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' 'https://www.youtube.com/watch?v=wBwJ7ETeRdE' ; echo $?
[youtube] Extracting URL: https://www.youtube.com/watch?v=wBwJ7ETeRdE
[youtube] wBwJ7ETeRdE: Downloading webpage
[youtube] wBwJ7ETeRdE: Downloading ios player API JSON
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
ERROR: [youtube] wBwJ7ETeRdE: Private video. Sign in if you've been granted access to this video
1

Technical information about the results above:

$ cat /etc/issue*
Kali GNU/Linux Rolling \n \l

Kali GNU/Linux Rolling

$ yt-dlp --version
2023.11.16

$ uname -mrsa
Linux adm-ClawVintage 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64 GNU/Linux

Can you fix that bug ?

Cheers !

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

$ yt-dlp --no-abort-on-error --ignore-errors --restrict-filenames -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' 'https://www.youtube.com/watch?v=wBwJ7ETeRdE' ; echo $?
[youtube] Extracting URL: https://www.youtube.com/watch?v=wBwJ7ETeRdE
[youtube] wBwJ7ETeRdE: Downloading webpage
[youtube] wBwJ7ETeRdE: Downloading ios player API JSON
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)...
[youtube] wBwJ7ETeRdE: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
ERROR: [youtube] wBwJ7ETeRdE: Private video. Sign in if you've been granted access to this video
1

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

Note: if using the Python API you may need to add 'ignoreerrors': 'only_download' to your params (this is default in CLI)

But he said in that comment he had tried setting 'ignoreerrors': True and 'ignoreerrors': 'only_download'. So that would probably not help.

The same happens for videos which will premiere in the future ERROR: [youtube] qfvo6tfZuR8: Premieres in 2 hours

Possibly related: #9614, #2947

My procedure, which is downloading a playlist, breaks when the private video is not the last item.