Repository: yt-dlp
Issue: Hang getting youtube video and cannot resume because got no data blocks
Labels: bug,regression,site:youtube,core:downloader

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I'm running yt-dlp version **2023.10.13** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Canada

### Provide a description that is worded well enough to be understood

YTDL works perfectly fine with a whole bunch of videos from youtube, I was downloading a huge playlist and it's just this one for some reason.

In the first invocation it hangs
```
[debug] Command-line config: ['-fmp4,mp4', '-vU', '-C', '--socket-timeout=60', 'https://www.youtube.com/watch?v=CHIMKfG44vo']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.10.13 [b634ba742] (pip)
[debug] Python 3.11.5 (CPython x86_64 64bit) - macOS-12.6.7-x86_64-i386-64bit (OpenSSL 3.1.2 1 Aug 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 4.2.2, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-3.43.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1890 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.10.13, Current version: stable@2023.10.13
yt-dlp is up to date (stable@2023.10.13)
[youtube] Extracting URL: https://www.youtube.com/watch?v=CHIMKfG44vo
[youtube] CHIMKfG44vo: Downloading webpage
[youtube] CHIMKfG44vo: Downloading ios player API JSON
[youtube] CHIMKfG44vo: Downloading android player API JSON
[youtube] CHIMKfG44vo: Downloading m3u8 information
[youtube] CHIMKfG44vo: 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, size, br, asr, vext, aext, hasaud, id
[info] CHIMKfG44vo: Downloading 2 format(s): 22, 22
[debug] Invoking http downloader on "https://rr4---sn-ni5f-t8gz.googlevideo.com/videoplayback?expire=1699990843&ei=23hTZdunDsv_kgbbj6CYDA&ip=96.55.138.35&id=o-ADJ4nheJpDsZxy8JUJleNv4KdXwU9Mn-HeBGlHE2rd7b&itag=22&source=youtube&requiressl=yes&mh=KL&mm=31%2C26&mn=sn-ni5f-t8gz%2Csn-vgqsrnsr&ms=au%2Conr&mv=m&mvi=4&pl=22&initcwndbps=1845000&spc=UWF9f0MR9gXDW7N_rbFBeiNr1molOQs&vprv=1&svpuc=1&mime=video%2Fmp4&cnr=14&ratebypass=yes&dur=331.813&lmt=1590246024483012&mt=1699969045&fvip=5&fexp=24007246&beids=24350018&c=ANDROID&txp=5432432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=ANLwegAwRgIhAOvS72wsD1PnCoxwRe4Iukuqk-eR56aGFWT6AeyClF-RAiEAlWRlZiLD1IlQ1q2ANHsOPQImBWrXoVkkkVj67KSfivE%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AM8Gb2swRQIhAMTqDLnQ07Iz0Tl0x0GRQ0ZHCmKIAdwd2Fhh8Or84nxDAiAKfinWMrDVjpvyqEgE632V1A-k0Yr02QOcKoR8n1qSpg%3D%3D"
[download] Destination: 5-Time Mr.Olympia Phil Heath Guest Posing at 2015 NPC Natural Northern USA Finals [CHIMKfG44vo].mp4
[download]   0.2% of   58.69MiB at  305.42KiB/s ETA 03:16
```

In subsequent invocations it cannot resume.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-fmp4,mp4', '-vU', '-C', '--socket-timeout=60', 'https://www.youtube.com/watch?v=CHIMKfG44vo']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.10.13 [b634ba742] (pip)
[debug] Python 3.11.5 (CPython x86_64 64bit) - macOS-12.6.7-x86_64-i386-64bit (OpenSSL 3.1.2 1 Aug 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 4.2.2, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-3.43.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1890 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.10.13, Current version: stable@2023.10.13
yt-dlp is up to date (stable@2023.10.13)
[youtube] Extracting URL: https://www.youtube.com/watch?v=CHIMKfG44vo
[youtube] CHIMKfG44vo: Downloading webpage
[youtube] CHIMKfG44vo: Downloading ios player API JSON
[youtube] CHIMKfG44vo: Downloading android player API JSON
[youtube] CHIMKfG44vo: Downloading m3u8 information
[youtube] CHIMKfG44vo: 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, size, br, asr, vext, aext, hasaud, id
[info] CHIMKfG44vo: Downloading 2 format(s): 22, 22
[debug] Invoking http downloader on "https://rr4---sn-ni5f-t8gz.googlevideo.com/videoplayback?expire=1699990582&ei=1ndTZabTH8-akwbxi7moDw&ip=96.55.138.35&id=o-AIVV3Cc_fLuqmZPDo1zRoZYupTl5V6s_qYo02oWJaoAq&itag=22&source=youtube&requiressl=yes&mh=KL&mm=31%2C26&mn=sn-ni5f-t8gz%2Csn-vgqsrnsr&ms=au%2Conr&mv=m&mvi=4&pl=22&initcwndbps=1783750&spc=UWF9f3sDuUtSYbqDHA9tsNhpoVHsFec&vprv=1&svpuc=1&mime=video%2Fmp4&cnr=14&ratebypass=yes&dur=331.813&lmt=1590246024483012&mt=1699968820&fvip=5&fexp=24007246&beids=24472440&c=ANDROID&txp=5432432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=ANLwegAwRQIhANQUZRo1SSIQZmCZp1_5rML8PRIWO_qaZzB4NZin_8WqAiAjPIfCWa_b_E40XfineJWFsqTeNaFr6_0WMmni3Govog%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AM8Gb2swRAIgTfzcGoH9XmfuzsyaJnlsWkTdyrF1Ss2iTUuMsdl0kvcCIAx_Y5gmzX3Pqz5OcAYYkP6Y0ZzuXqgKF2KXeklsSQ1y"
[download] Resuming download at byte 96184


ERROR: Did not get any data blocks
  File "/usr/local/bin/yt-dlp", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/__init__.py", line 1008, in main
    _exit(*variadic(_real_main(argv)))
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/__init__.py", line 998, in _real_main
    return ydl.download(all_urls)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3510, in download
    self.__download_wrapper(self.extract_info)(
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3485, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1556, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1567, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 2921, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3387, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3108, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/downloader/common.py", line 455, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/downloader/http.py", line 365, in real_download
    return download()
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/downloader/http.py", line 331, in download
    self.report_error('Did not get any data blocks')
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1045, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 973, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())


[debug] Invoking http downloader on "https://rr4---sn-ni5f-t8gz.googlevideo.com/videoplayback?expire=1699990582&ei=1ndTZabTH8-akwbxi7moDw&ip=96.55.138.35&id=o-AIVV3Cc_fLuqmZPDo1zRoZYupTl5V6s_qYo02oWJaoAq&itag=22&source=youtube&requiressl=yes&mh=KL&mm=31%2C26&mn=sn-ni5f-t8gz%2Csn-vgqsrnsr&ms=au%2Conr&mv=m&mvi=4&pl=22&initcwndbps=1783750&spc=UWF9f3sDuUtSYbqDHA9tsNhpoVHsFec&vprv=1&svpuc=1&mime=video%2Fmp4&cnr=14&ratebypass=yes&dur=331.813&lmt=1590246024483012&mt=1699968820&fvip=5&fexp=24007246&beids=24472440&c=ANDROID&txp=5432432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=ANLwegAwRQIhANQUZRo1SSIQZmCZp1_5rML8PRIWO_qaZzB4NZin_8WqAiAjPIfCWa_b_E40XfineJWFsqTeNaFr6_0WMmni3Govog%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AM8Gb2swRAIgTfzcGoH9XmfuzsyaJnlsWkTdyrF1Ss2iTUuMsdl0kvcCIAx_Y5gmzX3Pqz5OcAYYkP6Y0ZzuXqgKF2KXeklsSQ1y"
[download] Resuming download at byte 96184


ERROR: Did not get any data blocks
  File "/usr/local/bin/yt-dlp", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/__init__.py", line 1008, in main
    _exit(*variadic(_real_main(argv)))
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/__init__.py", line 998, in _real_main
    return ydl.download(all_urls)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3510, in download
    self.__download_wrapper(self.extract_info)(
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3485, in wrapper
    res = func(*args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1556, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1567, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 2921, in process_video_result
    self.process_info(new_info)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3387, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3108, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/downloader/common.py", line 455, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/downloader/http.py", line 365, in real_download
    return download()
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/downloader/http.py", line 331, in download
    self.report_error('Did not get any data blocks')
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 1045, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 973, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
```