{"action":"closed","issue":{"url":"https://api.github.com/repos/CERNDocumentServer/cds-videos/issues/1357","repository_url":"https://api.github.com/repos/CERNDocumentServer/cds-videos","labels_url":"https://api.github.com/repos/CERNDocumentServer/cds-videos/issues/1357/labels{/name}","comments_url":"https://api.github.com/repos/CERNDocumentServer/cds-videos/issues/1357/comments","events_url":"https://api.github.com/repos/CERNDocumentServer/cds-videos/issues/1357/events","html_url":"https://github.com/CERNDocumentServer/cds-videos/issues/1357","id":276397918,"number":1357,"title":"raised unexpected: KeyError('context_type',)","user":{"login":"drjova","id":4287772,"avatar_url":"https://avatars3.githubusercontent.com/u/4287772?v=4","gravatar_id":"","url":"https://api.github.com/users/drjova","html_url":"https://github.com/drjova","followers_url":"https://api.github.com/users/drjova/followers","following_url":"https://api.github.com/users/drjova/following{/other_user}","gists_url":"https://api.github.com/users/drjova/gists{/gist_id}","starred_url":"https://api.github.com/users/drjova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjova/subscriptions","organizations_url":"https://api.github.com/users/drjova/orgs","repos_url":"https://api.github.com/users/drjova/repos","events_url":"https://api.github.com/users/drjova/events{/privacy}","received_events_url":"https://api.github.com/users/drjova/received_events","type":"User","site_admin":false},"labels":[{"id":97247539,"url":"https://api.github.com/repos/CERNDocumentServer/cds-videos/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"drjova","id":4287772,"avatar_url":"https://avatars3.githubusercontent.com/u/4287772?v=4","gravatar_id":"","url":"https://api.github.com/users/drjova","html_url":"https://github.com/drjova","followers_url":"https://api.github.com/users/drjova/followers","following_url":"https://api.github.com/users/drjova/following{/other_user}","gists_url":"https://api.github.com/users/drjova/gists{/gist_id}","starred_url":"https://api.github.com/users/drjova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjova/subscriptions","organizations_url":"https://api.github.com/users/drjova/orgs","repos_url":"https://api.github.com/users/drjova/repos","events_url":"https://api.github.com/users/drjova/events{/privacy}","received_events_url":"https://api.github.com/users/drjova/received_events","type":"User","site_admin":false},"assignees":[{"login":"drjova","id":4287772,"avatar_url":"https://avatars3.githubusercontent.com/u/4287772?v=4","gravatar_id":"","url":"https://api.github.com/users/drjova","html_url":"https://github.com/drjova","followers_url":"https://api.github.com/users/drjova/followers","following_url":"https://api.github.com/users/drjova/following{/other_user}","gists_url":"https://api.github.com/users/drjova/gists{/gist_id}","starred_url":"https://api.github.com/users/drjova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjova/subscriptions","organizations_url":"https://api.github.com/users/drjova/orgs","repos_url":"https://api.github.com/users/drjova/repos","events_url":"https://api.github.com/users/drjova/events{/privacy}","received_events_url":"https://api.github.com/users/drjova/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-11-23T14:40:15Z","updated_at":"2017-11-27T12:33:21Z","closed_at":"2017-11-27T12:33:20Z","author_association":"OWNER","body":"# raised unexpected: KeyError('context_type',)\r\n\r\n* [x] 1384416\r\n* [x] 1335153\r\n* [x] 1355671\r\n* [x] 1331106\r\n* [x] 1394249\r\n* [x] 1384423\r\n* [x] 1340526\r\n* [x] 1325055\r\n* [x] 1388543\r\n* [x] 1351520\r\n* [x] 1374147\r\n* [x] 1384394\r\n* [x] 1384397\r\n* [x] 1382460\r\n* [x] 1384418\r\n* [x] 1384426\r\n* [x] 1353174\r\n* [x] 1373695\r\n* [x] 1983151\r\n* [x] 2065124\r\n* [x] 2040611\r\n* [x] 2040609\r\n* [x] 2040612\r\n* [x] 1987393\r\n\r\n```\r\n[2017-11-23 14:28:55,244: ERROR/MainProcess] Task invenio_migrator.tasks.records.import_record[d938a88c-88ce-435c-ba46-f9b2b828277f] raised unexpected: KeyError('context_type',)\r\nTraceback (most recent call last):\r\n  File \"/opt/cds/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\r\n    R = retval = fun(*args, **kwargs)\r\n  File \"/opt/cds/src/flask-celeryext/flask_celeryext/app.py\", line 78, in __call__\r\n    return Task.__call__(self, *args, **kwargs)\r\n  File \"/opt/cds/lib/python2.7/site-packages/celery/app/trace.py\", line 438, in __protected_call__\r\n    return self.run(*args, **kwargs)\r\n  File \"/opt/cds/src/invenio-migrator/invenio_migrator/tasks/records.py\", line 53, in import_record\r\n    current_migrator.records_dumploader_cls.create(recorddump)\r\n  File \"/opt/cds/src/cds/cds/modules/migrator/records.py\", line 199, in create\r\n    record, deposit = cls._create_deposit(record=record)\r\n  File \"/opt/cds/src/cds/cds/modules/migrator/records.py\", line 342, in _create_deposit\r\n    cls._resolve_files(deposit=deposit, record=record)\r\n  File \"/opt/cds/src/cds/cds/modules/migrator/records.py\", line 521, in _resolve_files\r\n    cls._resolve_dumps(record=deposit)\r\n  File \"/opt/cds/src/cds/cds/modules/migrator/records.py\", line 635, in _resolve_dumps\r\n    if o.get_tags()['context_type'] not in cls.dependent_objs:\r\nKeyError: 'context_type'\r\n```"}}
{"actor":{"display_login":"drjova"}}