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

Failue to download YouTube video -- "Could not find JS function 'encodeURIComponent'" #18891

Closed
RalphORama opened this issue Jan 17, 2019 · 25 comments

Comments

@RalphORama
Copy link

@RalphORama RalphORama commented Jan 17, 2019

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.01.16. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.01.16

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://www.youtube.com/watch?v=jr41skFqzb8']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2019.01.16
[debug] Python version 3.7.1 (CPython) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1
[debug] Proxy map: {}
[youtube] jr41skFqzb8: Downloading webpage
[youtube] jr41skFqzb8: Downloading video info webpage
[youtube] {18} signature length 43.40, html5 player vflxwIF7f
[youtube] jr41skFqzb8: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vflxwIF7f/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
    video_id, player_url, s
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1140, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1207, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\jsinterp.py", line 245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'encodeURIComponent'; 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.
 (caused by ExtractorError("Could not find JS function 'encodeURIComponent'; 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.")); 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.
Traceback (most recent call last):
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
    video_id, player_url, s
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1140, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1207, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\jsinterp.py", line 245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'encodeURIComponent'; 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.
Traceback (most recent call last):
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
    video_id, player_url, s
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1140, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1207, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\jsinterp.py", line 245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'encodeURIComponent'; 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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\YoutubeDL.py", line 793, in extract_info
    ie_result = ie.extract(url)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\common.py", line 508, in extract
    ie_result = self._real_extract(url)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1888, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1242, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
    video_id, player_url, s
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1140, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\extractor\youtube.py", line 1207, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "C:\Users\Ralph\AppData\Roaming\Python\Python37\site-packages\youtube_dl\jsinterp.py", line 245, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'encodeURIComponent'; 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.
 (caused by ExtractorError("Could not find JS function 'encodeURIComponent'; 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.")); 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.

Description of your issue, suggested solution and other information

It appears that I cannot download YouTube videos. I've attempted with the following links, but receive the error Could not find JS function 'encodeURIComponent' with every attempt. This issue was brought up by a friend who is experiencing the same problem.

However, I am able to download the following videos:

I'm not sure what the difference is between them, but the first five don't work and the last five do. Any help would be appreciated.

@carlbennett
Copy link

@carlbennett carlbennett commented Jan 17, 2019

@RalphORama failed this step:

Searched the bugtracker for similar issues including closed ones

#18873

@RalphORama
Copy link
Author

@RalphORama RalphORama commented Jan 17, 2019

@carlbennett Mentioned issue does not provide verbose log as is requested and very few examples. Thanks.

@carlbennett
Copy link

@carlbennett carlbennett commented Jan 17, 2019

@RalphORama Okay what do you say about #18890 then? You should have tagged along examples and verbose logs to the #18873.

@RalphORama
Copy link
Author

@RalphORama RalphORama commented Jan 17, 2019

@carlbennett thank you for your input, I'll wait and see what youtube-dl contributors say the issue was. I'm excited for a fix.

@carlbennett
Copy link

@carlbennett carlbennett commented Jan 17, 2019

Learn to search better.

@carlbennett
Copy link

@carlbennett carlbennett commented Jan 17, 2019

Someone already made a fix in that issue I linked.

@RalphORama
Copy link
Author

@RalphORama RalphORama commented Jan 17, 2019

@carlbennett bug reports are neither the time nor place to flame other users. I appreciate your linking of other issues but I think your usefulness in this thread has reached its limit.

@carlbennett
Copy link

@carlbennett carlbennett commented Jan 17, 2019

@RalphORama "Usefulness" hasn't ended. Seriously, take a look at this guy's commit:
Khang-NT/youtube-dl@f829ef2

@cosynox
Copy link

@cosynox cosynox commented Jan 17, 2019

I have the same problem:
youtube-dl -i -v --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=W434iQM7Lzw
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-i', u'-v', u'--extract-audio', u'--audio-format', u'mp3', u'-o', u'%(title)s.%(ext)s', u'https://www.youtube.com/watch?v=W434iQM7Lzw']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.16
[debug] Python version 2.7.13 (CPython) - Linux-4.9.0-8-amd64-x86_64-with-debian-9.6
[debug] exe versions: ffmpeg 3.3.9, ffprobe 3.3.9, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] W434iQM7Lzw: Downloading webpage
[youtube] W434iQM7Lzw: Downloading video info webpage
[youtube] {18} signature length 43.40, html5 player vflxwIF7f
[youtube] W434iQM7Lzw: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vflxwIF7f/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1232, in _decrypt_signature
video_id, player_url, s
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1140, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1207, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 245, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'encodeURIComponent'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Could not find JS function u'encodeURIComponent'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1232, in _decrypt_signature
video_id, player_url, s
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1140, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1207, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 245, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'encodeURIComponent'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 793, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 508, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1888, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1242, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1232, in _decrypt_signature
video_id, player_url, s
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1140, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1207, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 245, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'encodeURIComponent'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Could not find JS function u'encodeURIComponent'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

@RalphORama
Copy link
Author

@RalphORama RalphORama commented Jan 17, 2019

@carlbennett I appreciate Mr. Khang's fix much more than I appreciate your trolling in this thread.

@Ornosunite
Copy link

@Ornosunite Ornosunite commented Jan 17, 2019

@RalphORama is the real troll here, @carlbennett is just following the repository's contributing guidelines unlike @RalphORama who makes duplicate issues and lies about searching for similar ones.

There's a fix already, y'all calm down and go download your videos.

@RalphORama
Copy link
Author

@RalphORama RalphORama commented Jan 17, 2019

@Ornosunite please keep comments related to the issue at hand. Thank you.

@linuxbird
Copy link

@linuxbird linuxbird commented Jan 17, 2019

I get identical results as cosynox. Running current version. Was copying files, and this died in the last two hours.

@iPaat
Copy link

@iPaat iPaat commented Jan 17, 2019

Where can I find the mentioned fix?

@carlbennett
Copy link

@carlbennett carlbennett commented Jan 17, 2019

@iPaat Khang-NT/youtube-dl@f829ef2

@iPaat
Copy link

@iPaat iPaat commented Jan 17, 2019

Could someone be a nice mate and compile a version for Windows for me?

@scallywag41
Copy link

@scallywag41 scallywag41 commented Jan 17, 2019

Please forgive me as I am not a coder. I am an end user who is curious. If someone might have the kindness to explain to me how I might update to the latest fixed version?

~# pip install --upgrade youtube-dl
Requirement already up-to-date: youtube-dl in /usr/local/lib/python3.6/dist-packages (2019.1.16)
~#

@RalphORama
Copy link
Author

@RalphORama RalphORama commented Jan 17, 2019

@scallywag41 there's no new release yet, simply a proposed fix. I assume a new version will be deployed on pip later this week.

@scallywag41
Copy link

@scallywag41 scallywag41 commented Jan 17, 2019

@RalphORama Thank you sir. I will keep an eye on the thread. Sorry if I've interrupted. I don't use git a great deal and so I hope I haven't broken any etiquette.

@jchook
Copy link

@jchook jchook commented Jan 17, 2019

Here is the one-liner fix for future visitors:

pip install https://github.com/Khang-NT/youtube-dl/archive/master.zip
@cosynox
Copy link

@cosynox cosynox commented Jan 17, 2019

I have applied the fix that was proposed by carlbennet and it works for me very well.
Syndey Youngblood is playing Sit and Wait... Thank you!

@dstftw dstftw closed this in fa4ac36 Jan 17, 2019
@jc3213
Copy link

@jc3213 jc3213 commented Jan 18, 2019

@dstftw Sorry, but this bug still persists in Windows version 2019.01.17. Here is the debug log:

PS: I'm using http proxy service for downloading since I can't access youtube directly. The other videos without js player work fine.

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', 'bestvideo,bestaudio', '-o', 'R:\\youtube-dl\\download\\%(title)s.f%(format_id)s.%(ext)s', '--proxy', 'httpproxy:port', 'https://www.youtube.com/watch?v=dhQ5IC0NGUM']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2019.01.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: none
[debug] Proxy map: {'http': 'httpproxy:port', 'https': 'httpproxy:port'}
[youtube] dhQ5IC0NGUM: Downloading webpage
[youtube] dhQ5IC0NGUM: Downloading video info webpage
[youtube] {22} signature length 42.44, html5 player vfl-jbnrr
[youtube] dhQ5IC0NGUM: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vfl-jbnrr/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1139, in _extract_signature_function
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 777, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 772, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 268, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 642, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 692, in _webpage_read_content
  File "C:\Python\Python34\lib\http\client.py", line 549, in read
  File "C:\Python\Python34\lib\http\client.py", line 701, in _safe_read
http.client.IncompleteRead: IncompleteRead(461845 bytes read, 645726 more expected)
 (caused by IncompleteRead(461845 bytes read, 645726 more expected)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1139, in _extract_signature_function
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 777, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 772, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 268, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 642, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 692, in _webpage_read_content
  File "C:\Python\Python34\lib\http\client.py", line 549, in read
  File "C:\Python\Python34\lib\http\client.py", line 701, in _safe_read
http.client.IncompleteRead: IncompleteRead(461845 bytes read, 645726 more expected)
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1139, in _extract_signature_function
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 777, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 772, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 268, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 642, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 692, in _webpage_read_content
  File "C:\Python\Python34\lib\http\client.py", line 549, in read
  File "C:\Python\Python34\lib\http\client.py", line 701, in _safe_read
http.client.IncompleteRead: IncompleteRead(461845 bytes read, 645726 more expected)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\YoutubeDL.py", line 793, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 508, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1888, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1242, in _decrypt_signature
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1232, in _decrypt_signature
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 1139, in _extract_signature_function
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 777, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 772, in _download_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\youtube.py", line 268, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 642, in _download_webpage_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpgf__qgjd\build\youtube_dl\extractor\common.py", line 692, in _webpage_read_content
  File "C:\Python\Python34\lib\http\client.py", line 549, in read
  File "C:\Python\Python34\lib\http\client.py", line 701, in _safe_read
http.client.IncompleteRead: IncompleteRead(461845 bytes read, 645726 more expected)
 (caused by IncompleteRead(461845 bytes read, 645726 more expected)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

't' is not recognized as an internal or external command,
operable program or batch file.
@baobabKoodaa
Copy link

@baobabKoodaa baobabKoodaa commented Jan 18, 2019

Same, this persists for me as well on Windows version 2019.01.17

@Hrxn
Copy link

@Hrxn Hrxn commented Jan 18, 2019

https://www.youtube.com/watch?v=dhQ5IC0NGUM seems to work for me..

[debug] youtube-dl version 2019.01.17
[debug] Python version 3.7.1 (CPython) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg 4.1, ffprobe 4.1

These settings used in youtube-dl.conf:

--netrc
--output "%(title)s.%(ext)s"
--format "(bestvideo[vcodec=vp9.2]/bestvideo[vcodec=vp9][fps>30]/bestvideo[vcodec=vp9][height>=1080]/bestvideo[fps>30]/bestvideo[height>720])+(bestaudio[acodec=opus]/bestaudio)/best"
--restrict-filenames
--download-archive "D:\\Media\\ytdl-archive.log"

Dunno, but signing in (cf. --netrc) might help.
Alternatively, try this: youtube-dl uses a cache in $HOME (same location as config file, usually)
I.e. $HOME\.cache\youtube-dl\youtube-sigfuncs

Maybe try deleting that whole thing, not sure if this makes any difference.

@jc3213
Copy link

@jc3213 jc3213 commented Jan 18, 2019

@Hrxn I've tried -n aka --netrc but youtube-dl only shows WARNING: parsing .netrc: Could not find .netrc: $HOME is not set and nothing changed.

PS: It seems you are not using Windows versionyoutube-dl.exe. at least python lib version is different

PS2: Please try with the same Format settings -f bestvideo,bestaudio

timokau added a commit to timokau/nixpkgs that referenced this issue Jan 18, 2019
timokau added a commit to timokau/nixpkgs that referenced this issue Jan 18, 2019
Fixes an issue with youtube, see
ytdl-org/youtube-dl#18891

(cherry picked from commit a1169af)
@ytdl-org ytdl-org deleted a comment from morrishopkins Feb 5, 2019
@ytdl-org ytdl-org locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.