{"action":"created","issue":{"url":"https://api.github.com/repos/ncpierson/soundoftext/issues/21","labels_url":"https://api.github.com/repos/ncpierson/soundoftext/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ncpierson/soundoftext/issues/21/comments","events_url":"https://api.github.com/repos/ncpierson/soundoftext/issues/21/events","html_url":"https://github.com/ncpierson/soundoftext/issues/21","id":74599003,"number":21,"title":"Error handle AJAX calls","user":{"login":"ncpierson","id":3130334,"avatar_url":"https://avatars.githubusercontent.com/u/3130334?v=3","gravatar_id":"","url":"https://api.github.com/users/ncpierson","html_url":"https://github.com/ncpierson","followers_url":"https://api.github.com/users/ncpierson/followers","following_url":"https://api.github.com/users/ncpierson/following{/other_user}","gists_url":"https://api.github.com/users/ncpierson/gists{/gist_id}","starred_url":"https://api.github.com/users/ncpierson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncpierson/subscriptions","organizations_url":"https://api.github.com/users/ncpierson/orgs","repos_url":"https://api.github.com/users/ncpierson/repos","events_url":"https://api.github.com/users/ncpierson/events{/privacy}","received_events_url":"https://api.github.com/users/ncpierson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-09T06:12:37Z","updated_at":"2015-05-10T02:53:42Z","closed_at":"2015-05-10T02:53:42Z","body":"Add error handling to AJAX calls.\r\nDisplay a notification of some sort if an AJAX call fails.\r\n\r\nYOUR ERROR HANDLING IS BAD AND YOU SHOULD FEEL BAD\r\n\r\nAt the time of writing this, the `finishEarly` function always returns JSON. This isn't good, because `showSound` returns rendered HTML upon success. Which *is not* JSON. So, if a DB error occurred and JSON was returned from `showSound`, the user is going to see JSON in place of a result. Everything will break. Fix this."},"comment":{"url":"https://api.github.com/repos/ncpierson/soundoftext/issues/comments/100576081","html_url":"https://github.com/ncpierson/soundoftext/issues/21#issuecomment-100576081","issue_url":"https://api.github.com/repos/ncpierson/soundoftext/issues/21","id":100576081,"user":{"login":"ncpierson","id":3130334,"avatar_url":"https://avatars.githubusercontent.com/u/3130334?v=3","gravatar_id":"","url":"https://api.github.com/users/ncpierson","html_url":"https://github.com/ncpierson","followers_url":"https://api.github.com/users/ncpierson/followers","following_url":"https://api.github.com/users/ncpierson/following{/other_user}","gists_url":"https://api.github.com/users/ncpierson/gists{/gist_id}","starred_url":"https://api.github.com/users/ncpierson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncpierson/subscriptions","organizations_url":"https://api.github.com/users/ncpierson/orgs","repos_url":"https://api.github.com/users/ncpierson/repos","events_url":"https://api.github.com/users/ncpierson/events{/privacy}","received_events_url":"https://api.github.com/users/ncpierson/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T02:53:42Z","updated_at":"2015-05-10T02:53:42Z","body":"ACTUALLY I DIDN'T HAVE TO FEEL THAT BAD.\r\n\r\nIt was returning a 400 anyway, which means the `success` callback from AJAX would never be called. So, nbd.\r\n\r\nImplemented 5675c2d3147d153df2264d36c989ac75088e8353"}}