[tik-tok] ERROR: [generic] Unable to download webpage: The read operation timed out
See original GitHub issueChecklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I’m running yt-dlp version 2021.12.27. (update instructions)
- 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 issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Description
Cant download tik-tok video: WARNING: [generic] Could not send HEAD request ERROR: [generic] Unable to download webpage: The read operation timed out (caused by timeout(‘The read operation timed out’,)). ytdl-patched version 2022.01.19.114514 doesn’t work also.
Verbose log
yt-dlp -Uv -o ./abc.mp4 https://vm.tiktok.com/ZSe4FqkKd
[debug] Command-line config: ['-Uv', '-o', './abc.mp4', 'https://vm.tiktok.com/ZSe4FqkKd']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2021.12.27 [6223f67a8] (zip)
[debug] Python version 3.6.9 (CPython 64bit) - Linux-4.15.0-156-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Optional libraries: Crypto, secretstorage, sqlite
[debug] Proxy map: {}
Latest version: 2021.12.27, Current version: 2021.12.27
yt-dlp is up to date (2021.12.27)
[debug] [generic] Extracting URL: https://vm.tiktok.com/ZSe4FqkKd
[generic] ZSe4FqkKd: Requesting header
WARNING: [generic] Could not send HEAD request to https://vm.tiktok.com/ZSe4FqkKd: The read operation timed out
[generic] ZSe4FqkKd: Downloading webpage
ERROR: [generic] Unable to download webpage: The read operation timed out (caused by timeout('The read operation timed out',)); please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type yt-dlp -U to update. Be sure to call yt-dlp with the --verbose flag and include its complete output. (caused by timeout('The read operation timed out',)); please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type yt-dlp -U to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 717, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3458, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 564, in error
result = self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 756, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 564, in error
result = self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 756, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/bin/yt-dlp/yt_dlp/utils.py", line 1394, in https_open
req, **kwargs)
File "/usr/lib/python3.6/urllib/request.py", line 1328, in do_open
r = h.getresponse()
File "/usr/lib/python3.6/http/client.py", line 1377, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 281, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.6/ssl.py", line 1012, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.6/ssl.py", line 874, in read
return self._sslobj.read(len, buffer)
File "/usr/lib/python3.6/ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:24 (7 by maintainers)
Top Results From Across the Web
"The read operation timed out" : r/youtubedl - Reddit
Since yesterday my downloads are extremely slow. Most of the time not the download speed itself (throttling happens sometimes as well though) ...
Read more >How To Fix Can't Install Tiktok Error On Android Problem
If you have any computer/software-related problems, please feel free to contact us by visiting our website at https://www.softbayglobal.com ...
Read more >yt-dlp - PyPI
Download time range: Videos can be downloaded partially based on either ... fails --no-abort-on-error Continue with next video on download errors; ...
Read more >TikTok No Internet Connection 2022 - How To Fix The No ...
Alternatively, if there is an issue with your local server, then you might be able to get around it by using a VPN....
Read more >yt-dlp(1) - Debian Manpages
E.g. "gvsearch2:python" downloads two videos from google videos for ... for direct connection; --socket-timeout SECONDS: Time to wait before ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Seems to be a regression, I cannot reproduce on release (2021.12.27) Using
--user-agent facebookexternalhit/1.1
works as a workaroundFor anyone having issues spoofing the user-agent in embedded yt-dlp, setting the standard header before requesting the urls works for me: