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

Youtube DL download videos seems 403 forbidden #33018

Closed
6 tasks
lizhiliang06 opened this issue Jan 9, 2025 · 4 comments
Closed
6 tasks

Youtube DL download videos seems 403 forbidden #33018

lizhiliang06 opened this issue Jan 9, 2025 · 4 comments

Comments

@lizhiliang06
Copy link

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

PASTE VERBOSE LOG HERE

root@jack:/home/jack# youtube-dl "https://www.youtube.com/watch?v=MqyZfibp07o"
[youtube] MqyZfibp07o: Downloading webpage
player_url:https://www.youtube.com/s/player/a5032d18/player_ias.vflset/en_US/base.js
[youtube] MqyZfibp07o: Downloading API JSON
[dashsegments] Total fragments: 54
[download] Destination: ถ่ายทอดสด รายการข่าว 3 มิติ วันที่ 8 มกราคม 2568-MqyZfibp07o.f137.mp4
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 1 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 2 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 3 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 4 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 5 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 6 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 7 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 8 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 9 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 10 of 10)...
ERROR: giving up after 10 fragment retries
root@jack:/home/jack# youtube-dl "https://www.youtube.com/watch?v=MqyZfibp07o"
[youtube] MqyZfibp07o: Downloading webpage
player_url:https://www.youtube.com/s/player/a5032d18/player_ias.vflset/en_US/base.js
[youtube] MqyZfibp07o: Downloading API JSON
[dashsegments] Total fragments: 54
[download] Destination: ถ่ายทอดสด รายการข่าว 3 มิติ วันที่ 8 มกราคม 2568-MqyZfibp07o.f137.mp4
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 1 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 2 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 3 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 4 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 5 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 6 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 7 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 8 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 9 of 10)...
[download] Got server HTTP error: HTTP Error 403: Forbidden. Retrying fragment 1 (attempt 10 of 10)...
ERROR: giving up after 10 fragment retries

Description

WRITE DESCRIPTION HERE

Today,I using youtube dl in Thailand, and the browser I open the same URL,like "https://www.youtube.com/watch?v=MqyZfibp07o", it works good. who know why? is there somebody can help to fix this issue?

@tansy
Copy link

tansy commented Jan 9, 2025

Two things:

Two: OP still uses, or do it seems, v2021.12.17. Said it's going to happen.

One: I have the same problem. Yesterday some of the links worked, today none does.

$ ./ytdl-nightly-2025.01.06 --version
youtube-dl 2025.01.06

$ ./ytdl-nightly-2025.01.06 -v -f 18 https://www.youtube.com/watch?v=icqRjF04w_E
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-f', u'18', u'https://www.youtube.com/watch?v=icqRjF04w_E']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2025.01.06 [1036478d1] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 2.7.11 (CPython i686 32bit) - OpenSSL 1.0.2h  3 May 2016 - glibc 2.0
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] icqRjF04w_E: Downloading webpage
[youtube] icqRjF04w_E: Downloading API JSON
[debug] [youtube] Decrypted nsig pW5fCfW7kyArz6Yd => 8OP0wXHR1hvZV
[debug] [youtube] Decrypted nsig ImW-Po8hnIXIKgB4 => MUoZ3Dlwm30TV
[debug] Invoking downloader on u'https://rr3---sn-u2oxu-3ufz.googlevideo.com/videoplayback?rms=au%2Cau&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Ccnr%2Cratebypass%2Cdur%2Clmt&fexp=51326932%2C51331020%2C51335594%2C51353498%2C51371294&ei=SRd_Z52bLqW_i9oPm9_X6AY&ip=5.184.245.253&spc=x-caUGJKXkh0Noeg989-8BHz&id=o-AEYeda28gb-H1-PfhePmysUMGyVmAPkOV2TFZ8mQ86Cj&txp=5438434&svpuc=1&cnr=14&xpc=EgVo2aDSNQ%3D%3D&requiressl=yes&ratebypass=yes&source=youtube&mv=m&sig=AJfQdSswRQIgJhyr0NARN5-Rx27biOddld6IaWvyRswgUboMRa1xZLcCIQCLmmSy3-JjckU4P5ecHxlZtN1TQaKWBj1PSNuPhEWpUw%3D%3D&pcm2cms=yes&dur=743.433&ns=22zkqIiJBaPpQ0dZ0UjvTekQ&initcwndbps=1530000&vprv=1&lsig=AGluJ3MwRQIhAK2-BoRJb7gN23lNhfZiR4BLDpGGSZb8hhvwHeFmtQcKAiA5CqNuraJAaxK6A_Q1eU6vyt0bVYlpU2hv93-kiX6K2g%3D%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Crms%2Cinitcwndbps&lmt=1665154382966263&c=MWEB&met=1736382281%2C&bui=AfMhrI8DeIgPi_L4HlDRmH9PuZJH0_2Gorf2clX0xB_tR8fFk-_mC6esn_WS_ILj-j6Wuy5rkm-016JD&mime=video%2Fmp4&fvip=2&rqh=1&itag=18&sefc=1&mm=31%2C29&mn=sn-u2oxu-3ufz%2Csn-u2oxu-f5fer&mh=Go&n=8OP0wXHR1hvZV&mt=1736381825&expire=1736403881&pl=24&ms=au%2Crdu&mvi=3'
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "./ytdl-nightly-2025.01.06/youtube_dl/YoutubeDL.py", line 2162, in process_info
    success = dl(filename, info_dict)
  File "./ytdl-nightly-2025.01.06/youtube_dl/YoutubeDL.py", line 2092, in dl
    return fd.download(name, new_info)
  File "./ytdl-nightly-2025.01.06/youtube_dl/downloader/common.py", line 380, in download
    return self.real_download(filename, info_dict)
  File "./ytdl-nightly-2025.01.06/youtube_dl/downloader/http.py", line 349, in real_download
    establish_connection()
  File "./ytdl-nightly-2025.01.06/youtube_dl/downloader/http.py", line 116, in establish_connection
    raise err
HTTPError: HTTP Error 403: Forbidden

Some more of these logs.

@dirkf
Copy link
Contributor

dirkf commented Jan 9, 2025

Although OP failed to post a complete verbose log as requested, plainly the failing version is from 2025.01 since an earlier version would not have reached that failure point.

Indeed we are getting this, with various player JS, but that is #32905 again, where I'll continue the issue. Try format 18, though.

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
@lizhiliang06
Copy link
Author

thanks dirkf,today it works again,the same code, nothing change.

@tansy
Copy link

tansy commented Jan 12, 2025

today it works again

Same here. 'All of the sudden', after a day it started to work again.

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

No branches or pull requests

3 participants