{"action":"created","issue":{"url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1829","repository_url":"https://api.github.com/repos/Cloud-CV/EvalAI","labels_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1829/labels{/name}","comments_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1829/comments","events_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1829/events","html_url":"https://github.com/Cloud-CV/EvalAI/issues/1829","id":366477735,"node_id":"MDU6SXNzdWUzNjY0Nzc3MzU=","number":1829,"title":"Add exception handling when key is not present in leaderboard API","user":{"login":"deshraj","id":2945708,"node_id":"MDQ6VXNlcjI5NDU3MDg=","avatar_url":"https://avatars3.githubusercontent.com/u/2945708?v=4","gravatar_id":"","url":"https://api.github.com/users/deshraj","html_url":"https://github.com/deshraj","followers_url":"https://api.github.com/users/deshraj/followers","following_url":"https://api.github.com/users/deshraj/following{/other_user}","gists_url":"https://api.github.com/users/deshraj/gists{/gist_id}","starred_url":"https://api.github.com/users/deshraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deshraj/subscriptions","organizations_url":"https://api.github.com/users/deshraj/orgs","repos_url":"https://api.github.com/users/deshraj/repos","events_url":"https://api.github.com/users/deshraj/events{/privacy}","received_events_url":"https://api.github.com/users/deshraj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-03T18:50:48Z","updated_at":"2018-11-06T04:48:27Z","closed_at":null,"author_association":"MEMBER","body":"The backend server throws 500 internal server error whenever any key in the results stored in the leaderboard data table is not present in the leaderboard schema for that particular challenge. Instead we want to show meaningful error on the UI with proper status code. Please see the relevant error log given below:\n\n\nSentry Report: https://sentry.io/cloudcv/evalai-staging/issues/605096490/\n\n```\nKeyError: u'spl'\n(5 additional frame(s) were not displayed)\n...\n  File \"rest_framework/views.py\", line 477, in dispatch\n    response = self.handle_exception(exc)\n  File \"rest_framework/views.py\", line 437, in handle_exception\n    self.raise_uncaught_exception(exc)\n  File \"rest_framework/views.py\", line 474, in dispatch\n    response = handler(request, *args, **kwargs)\n  File \"rest_framework/decorators.py\", line 52, in handler\n    return func(*args, **kwargs)\n  File \"jobs/views.py\", line 259, in leaderboard\n    item['result'] = [item['result'][index] for index in leaderboard_labels]\n\nKeyError: u'spl'\n```"},"comment":{"url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/comments/436130020","html_url":"https://github.com/Cloud-CV/EvalAI/issues/1829#issuecomment-436130020","issue_url":"https://api.github.com/repos/Cloud-CV/EvalAI/issues/1829","id":436130020,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjEzMDAyMA==","user":{"login":"RishabhJain2018","id":12206047,"node_id":"MDQ6VXNlcjEyMjA2MDQ3","avatar_url":"https://avatars2.githubusercontent.com/u/12206047?v=4","gravatar_id":"","url":"https://api.github.com/users/RishabhJain2018","html_url":"https://github.com/RishabhJain2018","followers_url":"https://api.github.com/users/RishabhJain2018/followers","following_url":"https://api.github.com/users/RishabhJain2018/following{/other_user}","gists_url":"https://api.github.com/users/RishabhJain2018/gists{/gist_id}","starred_url":"https://api.github.com/users/RishabhJain2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RishabhJain2018/subscriptions","organizations_url":"https://api.github.com/users/RishabhJain2018/orgs","repos_url":"https://api.github.com/users/RishabhJain2018/repos","events_url":"https://api.github.com/users/RishabhJain2018/events{/privacy}","received_events_url":"https://api.github.com/users/RishabhJain2018/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T04:48:27Z","updated_at":"2018-11-06T04:48:27Z","author_association":"MEMBER","body":"Sure you can!"}}
{"actor":{"display_login":"RishabhJain2018"}}