{"action":"closed","issue":{"url":"https://api.github.com/repos/mongodb-labs/elastic2-doc-manager/issues/58","repository_url":"https://api.github.com/repos/mongodb-labs/elastic2-doc-manager","labels_url":"https://api.github.com/repos/mongodb-labs/elastic2-doc-manager/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/mongodb-labs/elastic2-doc-manager/issues/58/comments","events_url":"https://api.github.com/repos/mongodb-labs/elastic2-doc-manager/issues/58/events","html_url":"https://github.com/mongodb-labs/elastic2-doc-manager/issues/58","id":321741185,"number":58,"title":"KeyError '_id' on upsert","user":{"login":"somechild","id":7831644,"avatar_url":"https://avatars3.githubusercontent.com/u/7831644?v=4","gravatar_id":"","url":"https://api.github.com/users/somechild","html_url":"https://github.com/somechild","followers_url":"https://api.github.com/users/somechild/followers","following_url":"https://api.github.com/users/somechild/following{/other_user}","gists_url":"https://api.github.com/users/somechild/gists{/gist_id}","starred_url":"https://api.github.com/users/somechild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somechild/subscriptions","organizations_url":"https://api.github.com/users/somechild/orgs","repos_url":"https://api.github.com/users/somechild/repos","events_url":"https://api.github.com/users/somechild/events{/privacy}","received_events_url":"https://api.github.com/users/somechild/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-09T22:00:00Z","updated_at":"2018-05-14T03:28:48Z","closed_at":"2018-05-14T03:28:48Z","author_association":"NONE","body":"I experienced the same problem as mentioned [here]( https://github.com/mongodb-labs/mongo-connector/issues/409)\r\n```\r\nException in thread Thread-3:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/threading.py\", line 801, in __bootstrap_inner\r\n    self.run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector-2.5.2.dev0-py2.7.egg/mongo_connector/util.py\", line 104, in wrapped\r\n    func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector-2.5.2.dev0-py2.7.egg/mongo_connector/oplog_manager.py\", line 267, in run\r\n    docman.upsert(doc, ns, timestamp)\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector-2.5.2.dev0-py2.7.egg/mongo_connector/util.py\", line 35, in wrapped\r\n    return f(*args, **kwargs)\r\n  File \"/home/ubuntu/.local/lib/python2.7/site-packages/mongo_connector/doc_managers/elastic2_doc_manager.py\", line 300, in upsert\r\n    doc_id = u(doc.pop(\"_id\"))\r\nKeyError: '_id'\r\n```\r\nI added `_id` to the `includeFields` in the configuration and still experienced the same issue."}}
{"actor":{"display_login":"somechild"}}