{"action":"closed","issue":{"url":"https://api.github.com/repos/matthiaskoenig/pkdb/issues/275","repository_url":"https://api.github.com/repos/matthiaskoenig/pkdb","labels_url":"https://api.github.com/repos/matthiaskoenig/pkdb/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/matthiaskoenig/pkdb/issues/275/comments","events_url":"https://api.github.com/repos/matthiaskoenig/pkdb/issues/275/events","html_url":"https://github.com/matthiaskoenig/pkdb/issues/275","id":392507881,"node_id":"MDU6SXNzdWUzOTI1MDc4ODE=","number":275,"title":"Curating a new study results in indexing errors","user":{"login":"matthiaskoenig","id":900538,"node_id":"MDQ6VXNlcjkwMDUzOA==","avatar_url":"https://avatars1.githubusercontent.com/u/900538?v=4","gravatar_id":"","url":"https://api.github.com/users/matthiaskoenig","html_url":"https://github.com/matthiaskoenig","followers_url":"https://api.github.com/users/matthiaskoenig/followers","following_url":"https://api.github.com/users/matthiaskoenig/following{/other_user}","gists_url":"https://api.github.com/users/matthiaskoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiaskoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiaskoenig/subscriptions","organizations_url":"https://api.github.com/users/matthiaskoenig/orgs","repos_url":"https://api.github.com/users/matthiaskoenig/repos","events_url":"https://api.github.com/users/matthiaskoenig/events{/privacy}","received_events_url":"https://api.github.com/users/matthiaskoenig/received_events","type":"User","site_admin":false},"labels":[{"id":1039226365,"node_id":"MDU6TGFiZWwxMDM5MjI2MzY1","url":"https://api.github.com/repos/matthiaskoenig/pkdb/labels/backend","name":"backend","color":"f4a658","default":false},{"id":919623536,"node_id":"MDU6TGFiZWw5MTk2MjM1MzY=","url":"https://api.github.com/repos/matthiaskoenig/pkdb/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":{"login":"janekg89","id":5961300,"node_id":"MDQ6VXNlcjU5NjEzMDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5961300?v=4","gravatar_id":"","url":"https://api.github.com/users/janekg89","html_url":"https://github.com/janekg89","followers_url":"https://api.github.com/users/janekg89/followers","following_url":"https://api.github.com/users/janekg89/following{/other_user}","gists_url":"https://api.github.com/users/janekg89/gists{/gist_id}","starred_url":"https://api.github.com/users/janekg89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janekg89/subscriptions","organizations_url":"https://api.github.com/users/janekg89/orgs","repos_url":"https://api.github.com/users/janekg89/repos","events_url":"https://api.github.com/users/janekg89/events{/privacy}","received_events_url":"https://api.github.com/users/janekg89/received_events","type":"User","site_admin":false},"assignees":[{"login":"janekg89","id":5961300,"node_id":"MDQ6VXNlcjU5NjEzMDA=","avatar_url":"https://avatars2.githubusercontent.com/u/5961300?v=4","gravatar_id":"","url":"https://api.github.com/users/janekg89","html_url":"https://github.com/janekg89","followers_url":"https://api.github.com/users/janekg89/followers","following_url":"https://api.github.com/users/janekg89/following{/other_user}","gists_url":"https://api.github.com/users/janekg89/gists{/gist_id}","starred_url":"https://api.github.com/users/janekg89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janekg89/subscriptions","organizations_url":"https://api.github.com/users/janekg89/orgs","repos_url":"https://api.github.com/users/janekg89/repos","events_url":"https://api.github.com/users/janekg89/events{/privacy}","received_events_url":"https://api.github.com/users/janekg89/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-12-19T09:20:33Z","updated_at":"2018-12-19T12:12:18Z","closed_at":"2018-12-19T12:12:18Z","author_association":"OWNER","body":"I just tried to start curating `Stille1987` starting with a minimal study.json.\r\nWhen running the `watch_study.py` script I get the following error.\r\n\r\n```\r\nweb_1            | ERROR Internal Server Error: /api/v1/update_index/\r\nweb_1            | Traceback (most recent call last):\r\nweb_1            |   File \"/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py\", line 34, in inner\r\nweb_1            |     response = get_response(request)\r\nweb_1            |   File \"/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py\", line 126, in _get_response\r\nweb_1            |     response = self.process_exception_by_middleware(e, request)\r\nweb_1            |   File \"/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py\", line 124, in _get_response\r\nweb_1            |     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nweb_1            |   File \"/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py\", line 54, in wrapped_view\r\nweb_1            |     return view_func(*args, **kwargs)\r\nweb_1            |   File \"/code/pkdb_app/studies/views.py\", line 118, in update_index\r\nweb_1            |     study = Study.objects.get(sid=data[\"sid\"])\r\nweb_1            |   File \"/usr/local/lib/python3.6/site-packages/django/db/models/manager.py\", line 82, in manager_method\r\nweb_1            |     return getattr(self.get_queryset(), name)(*args, **kwargs)\r\nweb_1            |   File \"/usr/local/lib/python3.6/site-packages/django/db/models/query.py\", line 399, in get\r\nweb_1            |     self.model._meta.object_name\r\nweb_1            | pkdb_app.studies.models.Study.DoesNotExist: Study matching query does not exist.\r\n```\r\n\r\nI assume your code expects certain information which does not exist at the beginning of curation of a study."}}
{"actor":{"display_login":"matthiaskoenig"}}