youtube-dl: Signature extraction failed as of 1/29 update

Updating to the 1/29 release is now yielding this error! Major error.

sudo /opt/app/node_modules/youtube-dl/bin/youtube-dl --dump-json -f best -c ytsearch
:stronger kanye -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--dump-json', u'-f', u'best', u'-c', u'ytsearch:stronger', u'kanye', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.29
[debug] Python version 2.7.12 - Linux-4.4.0-53-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.10-0ubuntu0.16.04.1, ffprobe 2.8.10-0ubuntu0.16.04.1
[debug] Proxy map: {}
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1057, in _decrypt_signature
    video_id, player_url, s
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 971, in _extract_signature_function
    errnote='Download of %s failed' % player_url)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 436, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 416, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js
 (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js',)); 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 "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1057, in _decrypt_signa
ture
    video_id, player_url, s
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 971, in _extract_signat
ure_function
    errnote='Download of %s failed' % player_url)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in _download_webpag
e
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, 
headers=headers, query=query)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 436, in _download_webpag
e_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=que
ry)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 416, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js
Traceback (most recent call last):
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 369, in extract
    return self._real_extract(url)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1646, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1067, in _decrypt_signa
ture
    'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1057, in _decrypt_signa
ture
    video_id, player_url, s
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 971, in _extract_signat
ure_function
    errnote='Download of %s failed' % player_url)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in _download_webpag
e
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, 
headers=headers, query=query)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 436, in _download_webpag
e_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=que
ry)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 416, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/opt/app/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js
 (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js',)); 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 yo
utube-dl with the --verbose flag and include its complete output.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 20
  • Comments: 28 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Take a look with my pull request, I tested it work fine with some videos, I think there just a little bit change from YouTube, and the old regex is no longer working so I replaced it.

Yeah, the 1.10 update had it as well but they patched it up within hours. So hopefully the same happens here. They apparently don’t test well after they update 😕

Here: https://github.com/rg3/youtube-dl/issues/11663

Seeing failures on version 2016.12.15 as well:

youtube-dl -F FrG4TEcSuRg
[youtube] FrG4TEcSuRg: Downloading webpage
[youtube] FrG4TEcSuRg: Downloading video info webpage
[youtube] FrG4TEcSuRg: Extracting video information
[youtube] FrG4TEcSuRg: Downloading js player en_US-vflV3n15C
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1005, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 919, in _extract_signature_function
    errnote='Download of %s failed' % player_url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 517, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 424, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 404, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js
 (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflV3n15C/base.js',)); 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.

I’ve given the changes in that pull request a try, and yes it indeed fixes the issue experienced.

Endpoint was discontinued.

New Endpoint is supposed to be googleapis.com/youtube

Same issue here, I think it’s trying to get the wrong base.js (caused by ValueError(“unknown url type: ‘/yts/jsbin/player-en_US-vflV3n15C/base.js’”,));

same issue…

+1 Im getting it on 2017.01.29 and 2017.01.10