question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: An extractor error has occurred. (caused by KeyError(u'flavorAssets',));

See original GitHub issue

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

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

  • [ X] I’ve verified and I assure that I’m running youtube-dl 2016.09.08

Before submitting an issue make sure you have:

  • [X ] At least skimmed through README and most notably FAQ and BUGS sections
  • [ X] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [ X] 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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple —) not applicable to your issue


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

youtube-dl -u **REMOVED** -p **REMOVED** --playlist-start 361 -v https://www.safaribooksonline.com/library/view/android-6-app/9780134402017/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'--playlist-start', u'361', u'-v', u'https://www.safaribooksonline.com/library/view/android-6-app/9780134402017/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.08
[debug] Python version 2.7.6 - Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: ffmpeg N-81609-g7b3bc36-static
[debug] Proxy map: {}
[safari:course] Downloading login form
[safari:course] Logging in as **REMOVED**
[safari:course] Login successful
[safari:course] 9780134402017: Downloading course JSON
[download] Downloading playlist: Android 6 App Development Fundamentals I and II
[safari:course] playlist Android 6 App Development Fundamentals I and II: Collected 366 video ids (downloading 6 of them)
[download] Downloading video 1 of 6
[safari:api] 9780134402017/part360: Downloading part JSON
[safari] 9780134402017/part360: Downloading webpage
[safari] 9780134402017/part360: Downloading kaltura session JSON
WARNING: Unable to download kaltura session JSON: HTTP Error 401: UNAUTHORIZED
[Kaltura] " data-partner-id=: Downloading webpage
ERROR: An extractor error has occurred. (caused by KeyError(u'flavorAssets',)); 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/common.py", line 347, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/kaltura.py", line 224, in _real_extract
    info, flavor_assets = entry_data['meta'], entry_data['contextData']['flavorAssets']
KeyError: u'flavorAssets'
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 691, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 353, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
ExtractorError: An extractor error has occurred. (caused by KeyError(u'flavorAssets',)); 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.
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible. If work on your issue required an account credentials please provide them or explain how one can obtain them.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

2reactions
vincentHub-codercommented, Aug 16, 2020

hi @dstftw I’m having this issue as well gist .

Thanks! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

An extractor error has occurred. (caused by KeyError('asset ...
Checklist I'm reporting a broken site support I've verified that I'm running youtube-dl version 2021.12.17 I've checked that all provided ...
Read more >
youtube_dl.utils.ExtractorError: An extractor error has occurred ...
ERROR : An extractor error has occurred. (caused by KeyError('media',)); please report this issue on https://yt-dl.org/bug .
Read more >
Youtube-dl KeyError: 'entries' - python - Stack Overflow
Obviously your playlist_dict doesn't have key 'entries' . It is hard to say, why. Try checking what you still have in playlist_dict ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found