Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2011 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c113fd71dcee4c2f55e0 to your computer and use it in GitHub Desktop.
Save anonymous/c113fd71dcee4c2f55e0 to your computer and use it in GitHub Desktop.
raise DuplicateKeyError(error["err"])
pymongo.errors.DuplicateKeyError: (u"E11000 duplicate key error index: project-d
ata.post_history.$_id_ dup key: { : ObjectId('4db851437a1c964d35000030') }", "d
oc: {u'import_id': None, u'artifact_id': u'a76fe0480610f1e6c2099d3521f15289f8bc
9b7d.wiki@jwhtest3.p.sourceforge.net', u'tool_version': {u'Wiki': u'0.0'}, u'tim
estamp': datetime.datetime(2011, 4, 27, 17, 24, 19, 847000), u'labels': [], u'mo
d_date': datetime.datetime(2011, 4, 27, 17, 34, 45, 84484), u'app_config_id': Ob
jectId('4db850d47a1c964d3400002c'), u'data': {u'import_id': None, u'tool_version
': {u'Wiki': u'0.0'}, u'text': u'[#1] is the best ticket ever!', u'labels': [],
u'app_id': ObjectId('4db850d47a1c964d3400002c'), u'thread_id': u'8e1d7e45', u'la
st_edit_date': None, u'flagged_by': [], u'parent_id': None, u'version': 1, u'sta
tus': u'ok', u'timestamp': datetime.datetime(2011, 4, 27, 17, 24, 19, 837000), u
'discussion_id': ObjectId('4db850d47a1c964d3400002e'), u'mod_date': datetime.dat
etime(2011, 4, 27, 17, 24, 19, 837000), u'app_config_id': ObjectId('4db850d47a1c
964d3400002c'), u'slug': u'4954', u'edit_count': 0, u'last_edit_by_id': ObjectId
('4db851437a1c964d35000028'), u'acl': {u'moderate': [ObjectId('4db850d37a1c964d3
400000b')]}, u'full_slug': u'20110427172419:4954', u'flags': 0, u'author_id': Ob
jectId('4db6ebdc7a1c9676a2000092'), u'_id': u'a76fe0480610f1e6c2099d3521f15289f8
bc9b7d.wiki@jwhtest3.p.sourceforge.net'}, u'author': {'username': u'admin1', 'di
splay_name': u'Administrator 1', 'id': ObjectId('4db6ebdc7a1c9676a2000092'), 'lo
gged_ip': u'70.40.133.126'}, u'artifact_class': u'allura.model.discuss.Post', u'
acl': {}, u'version': 1, u'_id': ObjectId('4db851437a1c964d35000030')}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment