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

Constantly getting "ERROR: unable to download video data: HTTP Error 403: Forbidden" issue; no matter what. #577

Open
unbreakify opened this issue Jan 17, 2025 · 8 comments

Comments

@unbreakify
Copy link

I've updated it and i still get the ERROR: unable to download video data: HTTP Error 403: Forbidden error. Not sure why? Refuses to download youtube videos anymore. Docker Desktop also continuously begs me to "WSL integration with distro 'Ubuntu-22.04' unexpectedly stopped. Do you want to restart it?" but anytime i click Restart or Skip, it simply kicks me back to the same error.

@PikuZheng
Copy link
Contributor

log please

@cumal
Copy link

cumal commented Jan 18, 2025

Hi!
I'm getting the same error. I use it as a container, and previously it worked fine...

LOG:
INFO:ytdl:adding https://www.youtube.com/watch?v=2IbPn5j2YKk: quality='best' format='any' already=None folder=None custom_name_prefix='' playlist_strict_mode=False playlist_item_limit=0
INFO:aiohttp.access:AAA.AAA.AAA.AAA [18/Jan/2025:13:12:39 +0100] "POST /delete HTTP/1.1" 200 267 "http://AAA.AAA.AAA.AAA:8081/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"
DEBUG:ytdl:Processing as a video
INFO:ytdl:downloading Day Tripper (Remastered 2015)
INFO:aiohttp.access:AAA.AAA.AAA.AAA [18/Jan/2025:13:12:39 +0100] "POST /add HTTP/1.1" 200 267 "http://AAA.AAA.AAA.AAA:8081/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"
ERROR: unable to download video data: HTTP Error 403: Forbidden
INFO:ytdl:waiting for item to download

--> EDIT <--
Updated to the latest image and it's working again. I thought compose update the images automatically... Sorry!!

@PikuZheng
Copy link
Contributor

it's a known issue of yt-dlp yt-dlp/yt-dlp#11868

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0

I think unreasonable http headers are more likely to lead to being banned. choose only windows+chrome or osx+safari

@unbreakify
Copy link
Author

log please

Sorry, how do i send the log?

@henriquesebastiao
Copy link

I've been having the same problem here, in some cases the video download even reaches 100% but gives an error at the end.

Log:

metube_app_proxy_1  | yarn run v1.22.19
metube_app_proxy_1  | $ node ./bin/www
metube_app_proxy_1  | [HPM] Proxy created: /  -> http://metube_metube_1:8081
metube_app_proxy_1  | Waiting for metube_metube_1:8081 to open...
metube_app_proxy_1  | MeTube is now ready...
metube_app_proxy_1  | Listening on port: 3700
metube_app_proxy_1  | [HPM] Upgrading to WebSocket
metube_metube_1     | Setting umask to 022
metube_metube_1     | Creating download directory (/downloads), state directory (/downloads/.metube), and temp dir (/downloads)
metube_metube_1     | Changing ownership of download and state directories to 1000:1000
metube_metube_1     | Running MeTube as user 1000:1000
metube_metube_1     | INFO:main:Listening on 0.0.0.0:8081
metube_metube_1     | DEBUG:asyncio:Using selector: EpollSelector
metube_metube_1     | INFO:ytdl:waiting for item to download
metube_metube_1     | INFO:aiohttp.access:10.21.0.14 [01/Feb/2025:17:42:08 +0000] "GET /socket.io/?EIO=4&transport=polling&t=hd6c14em HTTP/1.1" 200 309 "http://172.16.0.210:3700/" "Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0"
metube_metube_1     | INFO:aiohttp.access:10.21.0.14 [01/Feb/2025:17:42:08 +0000] "GET /socket.io/?EIO=4&transport=polling&t=hd6de3e7&sid=14F-s7_cpwYM3OdPAAAA HTTP/1.1" 200 17155 "http://172.16.0.210:3700/" "Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0"
metube_metube_1     | INFO:aiohttp.access:10.21.0.14 [01/Feb/2025:17:42:08 +0000] "POST /socket.io/?EIO=4&transport=polling&t=hd6dd5bb&sid=14F-s7_cpwYM3OdPAAAA HTTP/1.1" 200 297 "http://172.16.0.210:3700/" "Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0"
metube_metube_1     | INFO:ytdl:adding https://youtu.be/CZSGIeRmYn8?si=qn96Ym6omsaC8rlm: quality='best' format='any' already=None folder=None custom_name_prefix='' playlist_strict_mode=False playlist_item_limit=0
metube_metube_1     | DEBUG:ytdl:Processing as a video
metube_metube_1     | INFO:ytdl:downloading O que IAs podem fazer? | Exemplos de Ferramentas
metube_metube_1     | ======== Running on http://0.0.0.0:8081 ========
metube_metube_1     | (Press CTRL+C to quit)
metube_metube_1     | INFO:aiohttp.access:10.21.0.14 [01/Feb/2025:17:42:18 +0000] "POST /add HTTP/1.1" 200 287 "http://172.16.0.210:3700/" "Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0"
metube_metube_1     | 
[download] 100.0% of ~   712.00B at    1.24KiB/s ETA Unknown (frag 0/164)
[download]   0.3% of ~ 228.06KiB at    1.24KiB/s ETA Unknown (frag 1/164)
[download]   3.0% of ~  57.02KiB at    3.10KiB/s ETA Unknown (frag 1/164)
...
[download]  92.1% of ~ 190.91MiB at    2.78MiB/s ETA 00:06 (frag 150/164)
ERROR: unable to download video data: HTTP Error 403: Forbidden
metube_metube_1     | INFO:ytdl:waiting for item to download

@PikuZheng
Copy link
Contributor

I've been having the same problem here, in some cases the video download even reaches 100% but gives an error at the end.

try latest yt-dlp nightly build

@KyanoTrevisan
Copy link

I ran into the same issue and fixed it by adding the some parameters to YoutubeDL in ytdl.py:

yt_dlp.YoutubeDL(params={
                'quiet': False,
                'verbose': True,
                'no_color': True,
                'extract_flat': False,
                'no_warnings': False,
                'extractor_args': {
                    'youtube': {
                       'player_client': ['android'],            # Use Android player API
                       'player_skip': ['webpage', 'configs']    # Skip config requests
                    }
                },

player_client: ['android'] has different rate limits and fewer restrictions
player_skip: ['webpage', 'configs'] bypasses some API requests that were triggering the 400 error

I also added:
'extract_flat': False and 'no_warnings': False

@henriquesebastiao
Copy link

@unbreakify , I was continuously getting 403 error on every download attempt, but everything works fine after updating metube to the latest version 2025-01-27. Check if this one works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants