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
  • [✓] I'm reporting a broken site support
  • [✓] I've verified that I'm running youtube-dl version 2020.09.20
  • [✓] 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
  • youtube-dl --verbose rGhbjISuRlc
    [debug] System config: []
    [debug] User config: []
    [debug] Custom config: []
    [debug] Command-line args: ['--verbose', 'rGhbjISuRlc']
    [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
    [debug] youtube-dl version 2020.09.20
    [debug] Python version 3.8.5 (CPython) - Linux-5.8.11-1-MANJARO-x86_64-with-glibc2.2.5
    [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
    [debug] Proxy map: {}
    [youtube] rGhbjISuRlc: Downloading webpage
    ERROR: Unable to download webpage: [Errno 104] Connection reset by peer (caused by ConnectionResetError(104, 'Connection reset by peer')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
      File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 632, in _request_webpage
        return self._downloader.urlopen(url_or_request)
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
        return self._opener.open(req, timeout=self._socket_timeout)
      File "/usr/lib/python3.8/urllib/request.py", line 525, in open
        response = self._open(req, data)
      File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.8/site-packages/youtube_dl/utils.py", line 2734, in https_open
        return self.do_open(functools.partial(
      File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
        r = h.getresponse()
      File "/usr/lib/python3.8/http/client.py", line 1347, in getresponse
        response.begin()
      File "/usr/lib/python3.8/http/client.py", line 307, in begin
        version, status, reason = self._read_status()
      File "/usr/lib/python3.8/http/client.py", line 268, in _read_status
        line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
      File "/usr/lib/python3.8/socket.py", line 669, in readinto
        return self._sock.recv_into(b)
      File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into
        return self.read(nbytes, buffer)
      File "/usr/lib/python3.8/ssl.py", line 1099, in read
        return self._sslobj.read(len, buffer)
    
    youtube-dl --verbose IYuYTfO6iOs
    [debug] System config: []
    [debug] User config: []
    [debug] Custom config: []
    [debug] Command-line args: ['--verbose', 'IYuYTfO6iOs']
    [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
    [debug] youtube-dl version 2020.09.20
    [debug] Python version 3.8.5 (CPython) - Linux-5.8.11-1-MANJARO-x86_64-with-glibc2.2.5
    [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
    [debug] Proxy map: {}
    [youtube] IYuYTfO6iOs: Downloading webpage
    ERROR: Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer> (caused by URLError(ConnectionResetError(104, 'Connection reset by peer')))
      File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 632, in _request_webpage
        return self._downloader.urlopen(url_or_request)
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
        return self._opener.open(req, timeout=self._socket_timeout)
      File "/usr/lib/python3.8/urllib/request.py", line 525, in open
        response = self._open(req, data)
      File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.8/site-packages/youtube_dl/utils.py", line 2734, in https_open
        return self.do_open(functools.partial(
      File "/usr/lib/python3.8/urllib/request.py", line 1353, in do_open
        raise URLError(err)
    
    youtube-dl --verbose YQadLyBwz3M
    [debug] System config: []
    [debug] User config: []
    [debug] Custom config: []
    [debug] Command-line args: ['--verbose', 'YQadLyBwz3M']
    [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
    [debug] youtube-dl version 2020.09.20
    [debug] Python version 3.8.5 (CPython) - Linux-5.8.11-1-MANJARO-x86_64-with-glibc2.2.5
    [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
    [debug] Proxy map: {}
    [youtube] YQadLyBwz3M: Downloading webpage
    ERROR: Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer> (caused by URLError(ConnectionResetError(104, 'Connection reset by peer')))
      File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 632, in _request_webpage
        return self._downloader.urlopen(url_or_request)
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
        return self._opener.open(req, timeout=self._socket_timeout)
      File "/usr/lib/python3.8/urllib/request.py", line 525, in open
        response = self._open(req, data)
      File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.8/site-packages/youtube_dl/utils.py", line 2734, in https_open
        return self.do_open(functools.partial(
      File "/usr/lib/python3.8/urllib/request.py", line 1353, in do_open
        raise URLError(err)
    

    Description

    I found out today that I can't download any content from youtube. I am using a VPN from China to a private router (Fritzbox) in Germany, if I use it all network traffic goes through it. I can see the videos with firefox. This is the newest version of ytdl. I am usually using fish as a console, but the same problem appears with bash, too:

    youtube-dl --verbose IYuYTfO6iOs
    [debug] System config: []
    [debug] User config: []
    [debug] Custom config: []
    [debug] Command-line args: ['--verbose', 'IYuYTfO6iOs']
    [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
    [debug] youtube-dl version 2020.09.20
    [debug] Python version 3.8.5 (CPython) - Linux-5.8.11-1-MANJARO-x86_64-with-glibc2.2.5
    [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
    [debug] Proxy map: {}
    [youtube] IYuYTfO6iOs: Downloading webpage
    [debug] Default format spec: bestvideo+bestaudio/best
    WARNING: Requested formats are incompatible for merge and will be merged into mkv.
    [debug] Invoking downloader on 'https://r5---sn-8xgp1vo-nh4e.googlevideo.com/videoplayback?expire=1602317780&ei=dBmBX92MGsWJ8gOe84mQAQ&ip=2408%3A8207%3A7854%3A3020%3A%3A75a&id=o-AOWPB3ipamk9y-epUcYsyQ71srdLbsqYSa4TTLf-vV2a&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=cQ&mm=31%2C29&mn=sn-8xgp1vo-nh4e%2Csn-q4fl6n7y&ms=au%2Crdu&mv=u&mvi=5&pl=44&vprv=1&mime=video%2Fmp4&gir=yes&clen=30945424&dur=850.840&lmt=1540879981814536&mt=1602295540&fvip=5&keepalive=yes&fexp=23915654&c=WEB&txp=5432432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgW5r2yIHrvkGbaFkT33_uSfrE-o3UnCW_QkkQS0nddbICIQCK-FmCZu7GF_wtaafBwLxMzhHe8YhSPcEDCbv3ygqtZA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AG3C_xAwRgIhANQeajDEbLq4fOIjZF7esJ9NV9yQXMc3ChDMdIU-oCgXAiEAxzxEFUj9GtGoAbbRERPVggkDZBefxfqGxQQnW54miqI%3D&ratebypass=yes'
    ERROR: unable to download video data: <urlopen error [Errno 104] Connection reset by peer>
    Traceback (most recent call last):
      File "/usr/lib/python3.8/urllib/request.py", line 1350, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/usr/lib/python3.8/http/client.py", line 1255, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
        self.send(msg)
      File "/usr/lib/python3.8/http/client.py", line 950, in send
        self.connect()
      File "/usr/lib/python3.8/http/client.py", line 1424, in connect
        self.sock = self._context.wrap_socket(self.sock,
      File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
        return self.sslsocket_class._create(
      File "/usr/lib/python3.8/ssl.py", line 1040, in _create
        self.do_handshake()
      File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
        self._sslobj.do_handshake()
    ConnectionResetError: [Errno 104] Connection reset by peer
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1920, in process_info
        partial_success = dl(fname, new_info)
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1865, in dl
        return fd.download(name, info)
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/common.py", line 366, in download
        return self.real_download(filename, info_dict)
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 348, in real_download
        establish_connection()
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 114, in establish_connection
        raise err
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 110, in establish_connection
        ctx.data = self.ydl.urlopen(request)
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
        return self._opener.open(req, timeout=self._socket_timeout)
      File "/usr/lib/python3.8/urllib/request.py", line 525, in open
        response = self._open(req, data)
      File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.8/site-packages/youtube_dl/utils.py", line 2734, in https_open
        return self.do_open(functools.partial(
      File "/usr/lib/python3.8/urllib/request.py", line 1353, in do_open
        raise URLError(err)
    urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer>
    

    This time it appears it had download some bits? The same I can find with fish, too:

    youtube-dl --verbose IYuYTfO6iOs
    [debug] System config: []
    [debug] User config: []
    [debug] Custom config: []
    [debug] Command-line args: ['--verbose', 'IYuYTfO6iOs']
    [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
    [debug] youtube-dl version 2020.09.20
    [debug] Python version 3.8.5 (CPython) - Linux-5.8.11-1-MANJARO-x86_64-with-glibc2.2.5
    [debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
    [debug] Proxy map: {}
    [youtube] IYuYTfO6iOs: Downloading webpage
    [debug] Default format spec: bestvideo+bestaudio/best
    WARNING: Requested formats are incompatible for merge and will be merged into mkv.
    [debug] Invoking downloader on 'https://r5---sn-8xgp1vo-nh4e.googlevideo.com/videoplayback?expire=1602317855&ei=vxmBX_PoKs3r1gLjkrmoAg&ip=2408%3A8207%3A7854%3A3020%3A%3A75a&id=o-ABMgmayrajrH2oXAc9FkdozETSA5yp4acv8SU9ubj4jl&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=cQ&mm=31%2C29&mn=sn-8xgp1vo-nh4e%2Csn-q4fl6n7y&ms=au%2Crdu&mv=u&mvi=5&pl=44&vprv=1&mime=video%2Fmp4&gir=yes&clen=30945424&dur=850.840&lmt=1540879981814536&mt=1602295540&fvip=5&keepalive=yes&fexp=23915654&c=WEB&txp=5432432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAOX4qk53PhHs3_eB4pBURPq_2JHlDo-zgKvpJpAYJhYjAiEAyLXMqpd5u1z_vQidhmPBX8qvebIih7xBoMGF96i4kDc%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AG3C_xAwRQIhAJk6nqouE_DVS76CRIq_xYY4UTL8NE6C5wljK0_14KXSAiBUhHNJhr618PgNN5DzeVAGv0-wKo9xknxH4y1I4MwPrA%3D%3D&ratebypass=yes'
    ERROR: unable to download video data: <urlopen error [Errno 104] Connection reset by peer>
    Traceback (most recent call last):
      File "/usr/lib/python3.8/urllib/request.py", line 1350, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/usr/lib/python3.8/http/client.py", line 1255, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
        self.send(msg)
      File "/usr/lib/python3.8/http/client.py", line 950, in send
        self.connect()
      File "/usr/lib/python3.8/http/client.py", line 1424, in connect
        self.sock = self._context.wrap_socket(self.sock,
      File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
        return self.sslsocket_class._create(
      File "/usr/lib/python3.8/ssl.py", line 1040, in _create
        self.do_handshake()
      File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
        self._sslobj.do_handshake()
    ConnectionResetError: [Errno 104] Connection reset by peer
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1920, in process_info
        partial_success = dl(fname, new_info)
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 1865, in dl
        return fd.download(name, info)
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/common.py", line 366, in download
        return self.real_download(filename, info_dict)
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 348, in real_download
        establish_connection()
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 114, in establish_connection
        raise err
      File "/usr/lib/python3.8/site-packages/youtube_dl/downloader/http.py", line 110, in establish_connection
        ctx.data = self.ydl.urlopen(request)
      File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2238, in urlopen
        return self._opener.open(req, timeout=self._socket_timeout)
      File "/usr/lib/python3.8/urllib/request.py", line 525, in open
        response = self._open(req, data)
      File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
      File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.8/site-packages/youtube_dl/utils.py", line 2734, in https_open
        return self.do_open(functools.partial(
      File "/usr/lib/python3.8/urllib/request.py", line 1353, in do_open
        raise URLError(err)
    urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer>
    

    If important: The above errors about downloading https://www.youtube.com/watch?v=IYuYTfO6iOs are not all the same. The first one is shorter. All are tried in the last 30 minutes.

    Is this a youtube change?
    Thank you!

    Best, Marcus