{"action":"opened","issue":{"url":"https://api.github.com/repos/MTG/freesound/issues/730","repository_url":"https://api.github.com/repos/MTG/freesound","labels_url":"https://api.github.com/repos/MTG/freesound/issues/730/labels{/name}","comments_url":"https://api.github.com/repos/MTG/freesound/issues/730/comments","events_url":"https://api.github.com/repos/MTG/freesound/issues/730/events","html_url":"https://github.com/MTG/freesound/issues/730","id":148022528,"number":730,"title":"Tag recommendation endpoint raises 500 if service not running","user":{"login":"alastair","id":19217,"avatar_url":"https://avatars.githubusercontent.com/u/19217?v=3","gravatar_id":"","url":"https://api.github.com/users/alastair","html_url":"https://github.com/alastair","followers_url":"https://api.github.com/users/alastair/followers","following_url":"https://api.github.com/users/alastair/following{/other_user}","gists_url":"https://api.github.com/users/alastair/gists{/gist_id}","starred_url":"https://api.github.com/users/alastair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alastair/subscriptions","organizations_url":"https://api.github.com/users/alastair/orgs","repos_url":"https://api.github.com/users/alastair/repos","events_url":"https://api.github.com/users/alastair/events{/privacy}","received_events_url":"https://api.github.com/users/alastair/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MTG/freesound/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/MTG/freesound/milestones/1","html_url":"https://github.com/MTG/freesound/milestones/Current","labels_url":"https://api.github.com/repos/MTG/freesound/milestones/1/labels","id":210137,"number":1,"title":"Current","description":null,"creator":null,"open_issues":69,"closed_issues":148,"state":"open","created_at":"2012-11-09T12:02:53Z","updated_at":"2016-04-13T10:59:53Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-13T10:59:53Z","updated_at":"2016-04-13T10:59:53Z","closed_at":null,"body":"```\r\nTraceback:\r\nFile \"/home/alastair/code/freesound/env/local/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n  109.                         response = callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/alastair/code/freesound/utils/tagrecommendation_utilities.py\" in get_recommended_tags_view\r\n  78.                 tags, community = get_recommended_tags(input_tags)\r\nFile \"/home/alastair/code/freesound/utils/tagrecommendation_utilities.py\" in get_recommended_tags\r\n  69.     return recommended_tags['tags'][:max_number_of_tags], recommended_tags['community']\r\n\r\nException Type: TypeError at /tagrecommendation/recommendtags/\r\nException Value: 'bool' object has no attribute '__getitem__'\r\nRequest information:\r\nGET: No GET data\r\n\r\nPOST:\r\ninput_tags = u'foo bar '\r\n```\r\n\r\nThis is a server error, but we should catch the error and return something custom rather than the standard django error. Perhaps 503 (Service unavailable)."}}