Skip to content

WARNING: [youtube] Unable to download API page: HTTPSConnectionPool(host='www.youtube.com', port=443): Read timed out #505

@kang000feng

Description

@kang000feng

dear developers,

here is the logs from docker , and i login the ytdl_1 container and rum curl -o /dev/null https://www.youtube.com --limit-rate 500k , it goes well. how to fix this error ?

ytdl_1 | [2025-04-17 15:22:42 session.py:281 I] PingTask started
ytdl_1 | [2025-04-17 15:22:43 dispatcher.py:224 I] Started 64 HandlerTasks
ytdl_1 | [2025-04-17 15:28:15 main.py:346 I] start https://youtu.be/3GjNSbmhePg?si=KS8CRls8E8ZirXP4
ytdl_1 | [2025-04-17 15:28:15 generic.py:121 I] yt-dlp options: {'progress_hooks': [<function YoutubeDownload._download.. at 0xffff7cd5bd80>], 'outtmpl': '/tmp/ytdl-w7cisrzt/%(title).70s.%(ext)s', 'restrictfilenames': False, 'quiet': True, 'match_filter': <function match_filter at 0xffff7fd007c0>, 'format': 'bestvideo[ext=mp4][vcodec!=av01][vcodec!=vp09]+bestaudio[ext=m4a]/bestvideo+bestaudio'}
ytdl_1 | WARNING: [youtube] HTTPSConnectionPool(host='www.youtube.com', port=443): Read timed out. (read timeout=20.0). Retrying (1/3)...
ytdl_1 | WARNING: [youtube] HTTPSConnectionPool(host='www.youtube.com', port=443): Read timed out. (read timeout=20.0). Retrying (2/3)...
ytdl_1 | WARNING: [youtube] HTTPSConnectionPool(host='www.youtube.com', port=443): Read timed out. (read timeout=20.0). Retrying (3/3)...
ytdl_1 | WARNING: [youtube] Unable to download API page: HTTPSConnectionPool(host='www.youtube.com', port=443): Read timed out. (read timeout=20.0) (caused by TransportError("HTTPSConnectionPool(host='www.youtube.com', port=443): Read timed out. (read timeout=20.0)"))
ytdl_1 | WARNING: [youtube] 3GjNSbmhePg: Signature extraction failed: Some formats may be missing
ytdl_1 | WARNING: [youtube] Failed to download m3u8 information: HTTPSConnectionPool(host='manifest.googlevideo.com', port=443): Read timed out. (read timeout=20.0)
ytdl_1 | WARNING: Only images are available for download. use --list-formats to see them
ytdl_1 | ERROR: [youtube] 3GjNSbmhePg: Requested format is not available. Use --list-formats for a list of available formats
ytdl_1 | [2025-04-17 15:30:00 main.py:366 E] Download failed
ytdl_1 | Traceback (most recent call last):
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1651, in wrapper
ytdl_1 | return func(self, *args, **kwargs)
ytdl_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1807, in __extract_info
ytdl_1 | return self.process_ie_result(ie_result, download, extra_info)
ytdl_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1866, in process_ie_result
ytdl_1 | ie_result = self.process_video_result(ie_result, download=download)
ytdl_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 3000, in process_video_result
ytdl_1 | raise ExtractorError(
ytdl_1 | yt_dlp.utils.ExtractorError: [youtube] 3GjNSbmhePg: Requested format is not available. Use --list-formats for a list of available formats
ytdl_1 |
ytdl_1 | During handling of the above exception, another exception occurred:
ytdl_1 |
ytdl_1 | Traceback (most recent call last):
ytdl_1 | File "/app/main.py", line 353, in download_handler
ytdl_1 | youtube_entrance(client, bot_msg, url)
ytdl_1 | File "/app/engine/init.py", line 17, in youtube_entrance
ytdl_1 | youtube.start()
ytdl_1 | File "/app/engine/base.py", line 270, in start
ytdl_1 | self._start()
ytdl_1 | File "/app/engine/generic.py", line 136, in _start
ytdl_1 | self._download(default_formats)
ytdl_1 | File "/app/engine/generic.py", line 123, in _download
ytdl_1 | ydl.download([self._url])
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 3632, in download
ytdl_1 | self.__download_wrapper(self.extract_info)(
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 3605, in wrapper
ytdl_1 | res = func(*args, **kwargs)
ytdl_1 | ^^^^^^^^^^^^^^^^^^^^^
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1640, in extract_info
ytdl_1 | return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
ytdl_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1669, in wrapper
ytdl_1 | self.report_error(str(e), e.format_traceback())
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1109, in report_error
ytdl_1 | self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
ytdl_1 | File "/usr/local/lib/python3.12/site-packages/yt_dlp/YoutubeDL.py", line 1048, in trouble
ytdl_1 | raise DownloadError(message, exc_info)
ytdl_1 | yt_dlp.utils.DownloadError: ERROR: [youtube] 3GjNSbmhePg: Requested format is not available. Use --list-formats for a list of available formats

Metadata

Metadata

Assignees

No one assigned

    Labels

    inactiveThis issue/PR has seen no activity for a significant period.invalidThis doesn't seem rightwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions