-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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] Get ERROR: giving up after 0 fragment retries (last nightly version) #32893
Comments
I can't repro here. The reason for giving up after I find that @dant4ick, do feel free to add any substantive comment. We are all rolling our eyes here. |
many thx @dirkf
|
You could try to see what exception is being raised on the download by either tracing in the DASH downloader module that I identified above or inserting success, frag_content = self._download_fragment(ctx, fragment_url, info_dict, headers) That call (into |
I found out that some fragment_url for example this one
has status denied. ctx here is
so I catch error here :
|
I am curious if for some reason YouTube returns the URL with 403- is it possible to add other attempts to get the correct URL (fragment)? |
If so, why don't we see output from here? Is if count < fragment_retries:
self.report_retry_fragment(err, frag_index, count + 1, fragment_retries)
continue |
because I have count an fragment_retries as 0
info_dict with the URL for the fragment that already has 403. and nothing helps me. I think the validation could be good to set early |
Maybe letting the download retry will help. More likely, your problem is the |
Continued in #32905. |
I think the issue exists. no? why do you close it? |
because it is continued in another issue post as stated right above your post, its merging issues into one centralized post. the "as not planned" thing is github itself not giving devs the option to be less passive aggressive about closing reason |
@dirkf to avoid opening new issues - I saw a new type of error with the same code (just on linux platform). I made a new update (2024-08-07) and see this. any ideas on how to cope with it?
|
YT ban? Review yt-dlp/yt-dlp#10128. |
Regarding "not planned",. it may not be clear if you aren't able to close issues, but the subhead under the |
no problem. understood the idea. |
yes. the same absolutely. this a fork of your youtube-dl seems? It's funny, but the contributor just closed the issue without any solution) |
It looks like you just have to wait for your IP to get unbanned, and/or use a different connection. Or conceivably, actually using YT in your browser (presumably, you'll have to sign in) will get you unbanned. Or maybe the solution to #32905 will change things. Regarding yt-dlp, once upon a time, long before I was involved (and so this account is hearsay), yt-dl was forked to add features that the then maintainers wouldn't accept. That fork eventually died and was later resuscitated as yt-dlp. Although yt-dlp is not a fork in the GitHub sense, there is shared commit (ancient) history, a common program architecture and interfaces sufficiently similar that an extractor can be written to run in both programs. Basically, this program tries to remain compatible with existing platforms while yt-dlp targets only supported platforms (and so is able to deploy novel Python syntax and library features as well as a more extensive set of dependencies). |
many thx |
Verbose log
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.youtube.com:443
DEBUG:urllib3.connectionpool:https://www.youtube.com:443 "GET /watch?v=_OKAwz2MsJs HTTP/1.1" 200 None
[debug] Encodings: locale cp1251, fs utf-8, out utf-8, pref cp1251
[debug] youtube-dl version 2024.08.02 [71223bf]
[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] Git HEAD: 1278be0
[debug] Python 3.9.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 - OpenSSL 1.1.1m 14 Dec 2021
[debug] exe versions: ffmpeg 2023-01-12-git-fc263f073e-essentials_build-www.gyan.dev, ffprobe 2023-01-12-git-fc263f073e-essentials_build-www.gyan.dev
[debug] Proxy map: {}
[youtube] _OKAwz2MsJs: Downloading webpage
[debug] [youtube] Decrypted nsig Qm536sut23muowSm => gPzfoGXIyPH5eg
[debug] [youtube] Decrypted nsig y8r9VdSTeJPDq_6v => CV-R0tNLKCrfRw
[debug] Invoking downloader on 'https://rr1---sn-585uxauxaxjvh-hw8l.googlevideo.com/videoplayback?expire=1722789855&ei=f1uvZuSAJ_CjvdIPo-G5uAo&ip=149.100.31.250&id=o-AAAGxGN9VxkYeMpSRs81kPCzbONTOrGmF8x0uraNOGFl&itag=135&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C271%2C278%2C313%2C394%2C395%2C396%2C397%2C398%2C399%2C400%2C401&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=eD&mm=31%2C29&mn=sn-585uxauxaxjvh-hw8l%2Csn-h5q7kned&ms=au%2Crdu&mv=m&mvi=1&pl=21&initcwndbps=1710000&bui=AXc671IgcgyZgsxOhgZePMFXLDky3iVjgO1Od5g1l6RUx-WA4vPN7R8J_lkLbqxT3voVEjz1e7MpGqsf&spc=NO7bAeZtuJFJ6ceo0qpxyQy2Yhrcrn6HvpN-bkdNHKL4A9Z30NzWCyPWNuiR&vprv=1&svpuc=1&mime=video%2Fmp4&ns=UY2gwW6Ofrf9ldh1b7xBGi0Q&rqh=1&gir=yes&clen=8725720&dur=170.169&lmt=1721766646012129&mt=1722767837&fvip=5&keepalive=yes&c=WEB&sefc=1&txp=5532434&n=CV-R0tNLKCrfRw&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIgUJda5-y-AO7qlh9UCBAGM8EZkTjGf1ldrwfRy3QjnQQCIQDOFXG5nsJJ7BDIVdJsIedFXJV1MaARmy5VDJQ5TIovEw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AGtxev0wRQIhAMvFfD-S1-dmo2iy6hEn2IkKbC-4hasHZDrHgyhzhEB4AiBGYfPux3Y3VH6iMXIdPrJgREd8322H7fsZeWEbd6iRFA%3D%3D'
[dashsegments] Total fragments: 1
[download] Destination: Temp\4db3dfbb-bdc3-404f-a1e7-c3a49aeb0938\Joker - Folie À Deux _ Official Trailer.f135.mp4
ERROR: giving up after 0 fragment retries
Description
Hey. Stuck with an issue that can't download files after last nightly update 2024.08.02
file https://www.youtube.com/watch?v=_OKAwz2MsJs
pipeline:
but the 2d or 3d attempt again brings up the issue.
use in code:
The text was updated successfully, but these errors were encountered: