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 error: fragment 1 not found, unable to continue #4796

Closed
10 tasks done
ahm750 opened this issue Aug 29, 2022 · 1 comment
Closed
10 tasks done

YouTube error: fragment 1 not found, unable to continue #4796

ahm750 opened this issue Aug 29, 2022 · 1 comment
Labels
external issue Issue with an external tool site-bug Issue with a specific website

Comments

@ahm750
Copy link

ahm750 commented Aug 29, 2022

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

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

Checklist

Region

No response

Provide a description that is worded well enough to be understood

Hi, these two YouTube videos are not getting downloaded for the 1080p resolution (-f 137) and throw an error as shown in the verbose below.

https://www.youtube.com/watch?v=H2CMFor1mwY
https://www.youtube.com/watch?v=4NtTni0ApZc

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-f', '137', 'https://www.youtube.com/watch?v=4NtTni0ApZc', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out UTF-8, error UTF-8, screen UTF-8
[debug] yt-dlp version 2022.08.19 [48c88e0] (zip)
[debug] Python 3.7.5 (CPython 64bit) - Linux-4.15.0-135-generic-x86_64-with-Ubuntu-18.04-bionic (glibc 2.26)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.05.30, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.2
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.08.19, Current version: 2022.08.19
yt-dlp is up to date (2022.08.19)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=4NtTni0ApZc
[youtube] 4NtTni0ApZc: Downloading webpage
[youtube] 4NtTni0ApZc: Downloading android player API JSON
[youtube] 4NtTni0ApZc: Downloading MPD manifest
[youtube] 4NtTni0ApZc: Downloading MPD manifest
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] 4NtTni0ApZc: Downloading 1 format(s): 137
[debug] Invoking dashsegments downloader on "https://manifest.googlevideo.com/api/manifest/dash/expire/1661807257/ei/OdYMY87qN5rBhgaY1p6gAg/ip/165.227.72.96/id/e0db539e2d00a597/source/youtube/requiressl/yes/playback_host/rr3---sn-ab5sznz6.googlevideo.com/mh/ve/mm/31%2C26/mn/sn-ab5sznz6%2Csn-vgqsknsk/ms/au%2Conr/mv/m/mvi/3/pl/20/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/203750/vprv/1/mt/1661785290/fvip/4/keepalive/yes/fexp/24001373%2C24007246/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRAIgPy3bfYKDrvh95cr_95ayAm5fm1R_A2nnd_9yAv14KRECICjkXRm6Iv7xZwcFKluQMNgs7Sp_Z8_ciJbYIXjVmzEK/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgW4HxK-qB_6Ga_j_Oi_yZBtLxTIwL5a_mYqYsNfGOUYsCIQDhLf_Z8X-stbOFvRJsESgA16H7MC_ZjyM4s7kEpDgIuA%3D%3D"
[dashsegments] Total fragments: 116
[download] Destination: Oathbreaker – EPIC Fantasy Photoshop Timelapse Speedart [4NtTni0ApZc].mp4
[download] Got error: The read operation timed out. Retrying (1/10)...
[download] Got error: The read operation timed out. Retrying (2/10)...
[download] Got error: The read operation timed out. Retrying (3/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (4/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (5/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (6/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (7/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (8/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (9/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (10/10)...
[download] Got error: HTTP Error 503: Service Unavailable. Giving up after 10 retries
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
    yt_dlp.main()
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 953, in main
    _exit(*variadic(_real_main(argv)))
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 945, in _real_main
    return ydl.download(all_urls)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3292, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3267, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1433, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1442, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1539, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1597, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2695, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3170, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2894, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 442, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/dash.py", line 54, in real_download
    return self.download_and_append_fragments_multiple(*args)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 373, in download_and_append_fragments_multiple
    return self.download_and_append_fragments(*args[0], pack_func=pack_func, finish_func=finish_func)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 517, in download_and_append_fragments
    download_fragment(fragment, ctx)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 466, in download_fragment
    if not self._download_fragment(ctx, fragment['url'], info_dict, headers):
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 124, in _download_fragment
    success, _ = ctx['dl'].download(fragment_filename, fragment_info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 442, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/http.py", line 369, in real_download
    for retry in RetryManager(self.params.get('retries'), self.report_retry):
  File "/usr/local/bin/yt-dlp/yt_dlp/utils.py", line 5754, in __iter__
    self.error_callback(self.error, self.attempt, self.retries)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 392, in report_retry
    suffix=f'fragment{"s" if frag_index is None else f" {frag_index}"}' if is_frag else None)
  File "/usr/local/bin/yt-dlp/yt_dlp/utils.py", line 5761, in report_retry
    return error(f'{e}. Giving up after {count - 1} retries') if count > 1 else error(str(e))
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 390, in <lambda>
    error=IDENTITY if not fatal else lambda e: self.report_error(f'\r[download] Got error: {e}'),
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 979, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 911, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

ERROR: fragment 1 not found, unable to continue
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
    yt_dlp.main()
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 953, in main
    _exit(*variadic(_real_main(argv)))
  File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 945, in _real_main
    return ydl.download(all_urls)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3292, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3267, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1433, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1442, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1539, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1597, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2695, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3170, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2894, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 442, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/dash.py", line 54, in real_download
    return self.download_and_append_fragments_multiple(*args)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 373, in download_and_append_fragments_multiple
    return self.download_and_append_fragments(*args[0], pack_func=pack_func, finish_func=finish_func)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 519, in download_and_append_fragments
    decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 482, in append_fragment
    self.report_error(f'fragment {frag_index} not found, unable to continue')
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 979, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 911, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
@ahm750 ahm750 added site-bug Issue with a specific website triage Untriaged issue labels Aug 29, 2022
@pukkandan
Copy link
Member

The server is giving 503/timing out. Nothing we can do

@pukkandan pukkandan closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2022
@pukkandan pukkandan added external issue Issue with an external tool and removed triage Untriaged issue labels Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external issue Issue with an external tool site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

2 participants