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.

KeyError: 'created' return meta['created']

See original GitHub issue

Hi I am using elasticsearch-dsl-py in my project with the version 5.4.0. I got key error in document.py line 437 for there is no key in meta. I saw it has been updated in master branch to be code return meta["result"] == "created". So when can I got the next release version. Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
Penguin7zcommented, Dec 25, 2017

Currently I inherited the class DocType and override the methods save to and change the last line to be return meta.get('result', '') == 'created'

3reactions
Fahminajjarcommented, Jul 15, 2018

I have version 6.2.1 and I’m still facing this problem!

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError getting metadata from video file - python
According to the source code, ffmpeg.probe returns a dictionary loaded from JSON. So, you don't need to take out the first item and...
Read more >
Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >
How to Fix KeyError in Pandas (With Example) - Statology
KeyError : 'column_name'. This error occurs when you attempt to access some column in a pandas DataFrame that does not exist.
Read more >
How to Fix: KeyError in Pandas - GeeksforGeeks
Pandas KeyError occurs when we try to access some column/row label in our DataFrame that doesn't exist. Usually, this error occurs when you ......
Read more >
keyerror in Python – How to Fix Dictionary Error
The two methods we'll talk about for fixing the KeyError exception in Python are: The in keyword. The try except block. Let's get...
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