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

yt-dlp failing with https status code 403 #1153

Open
130s opened this issue Jan 28, 2025 · 2 comments
Open

yt-dlp failing with https status code 403 #1153

130s opened this issue Jan 28, 2025 · 2 comments
Labels
problem_broken-unfunctional-cando Can't do XX because existing functionality is broken

Comments

@130s
Copy link
Collaborator

130s commented Jan 28, 2025

$ yt-dlp xxyyzzmmnn    
[youtube] Extracting URL: xxyyzzmmnn     
[youtube] xxyyzzmmnn: Downloading webpage
[youtube] xxyyzzmmnn: Downloading android player API JSON  
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.  
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (1/3)...    
[youtube] xxyyzzmmnn: Downloading android player API JSON  
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.  
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (2/3)...    
[youtube] xxyyzzmmnn: Downloading android player API JSON  
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.   
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying (3/3)... 
[youtube] xxyyzzmmnn: 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 a
ppropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[youtube] xxyyzzmmnn: Downloading player 77a95d1d        
WARNING: [youtube] xxyyzzmmnn: nsig extraction failed: You may experience throttling for some formats
n = 1rtuaWuvy6sAHm ; player = https://www.youtube.com/s/player/77a95d1d/player_ias.vflset/en_US/base.js 
WARNING: [youtube] xxyyzzmmnn: nsig extraction failed: You may experience throttling for some formats 
n = oNx3HMWEFoHmAk ; player = https://www.youtube.com/s/player/77a95d1d/player_ias.vflset/en_US/base.js 
[info] xxyyzzmmnn: Downloading 1 format(s): 313+251     
[dashsegments] Total fragments: 208       
[download] Destination: title-title-title [xxyyzzmmnn].f313.webm   
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (3/10)...

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ apt-cache policy yt-dlp 
yt-dlp:
  Installed: 2023.03.04-1
  Candidate: 2023.03.04-1
  Version table:
@130s 130s added the problem_broken-unfunctional-cando Can't do XX because existing functionality is broken label Jan 28, 2025
@130s
Copy link
Collaborator Author

130s commented Jan 28, 2025

Tried also pip version #790 (comment) but failing (Maybe related to the nature of the environment on the VM on ChromeOS).

$ pip3 install \
  git+https://github.com/ytdl-org/youtube-dl.git@master#egg=youtube_dl \
  --force-reinstall

OR

$ pip3 install youtube_dl

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

@130s
Copy link
Collaborator Author

130s commented Jan 29, 2025

This isn't the case on Ubuntu 22.04

$ which yt-dlp 
/snap/bin/yt-dlp
$ yt-dlp --version
2024.10.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem_broken-unfunctional-cando Can't do XX because existing functionality is broken
Projects
None yet
Development

No branches or pull requests

1 participant