{"action":"created","comment":{"url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/comments/30496121","id":30496121,"diff_hunk":"@@ -101,6 +101,12 @@ go.app = function() {\n           return parseProfile(response.data)\n             .then(updateContact)\n             .thenResolve(self.states.create(\"states:cuddlers:babyChecker\"));\n+        } else {\n+          self.im.log.error([\n+            \"HTTP code not 200 when fetching profile from server: \",\n+            JSON.stringify(err.response)\n+            ].join(''));","path":"go-app.js","position":8,"original_position":8,"commit_id":"2169336b2fd019f0ede0341a394b5c953f28d574","original_commit_id":"2169336b2fd019f0ede0341a394b5c953f28d574","user":{"login":"hodgestar","id":165551,"avatar_url":"https://avatars.githubusercontent.com/u/165551?v=3","gravatar_id":"","url":"https://api.github.com/users/hodgestar","html_url":"https://github.com/hodgestar","followers_url":"https://api.github.com/users/hodgestar/followers","following_url":"https://api.github.com/users/hodgestar/following{/other_user}","gists_url":"https://api.github.com/users/hodgestar/gists{/gist_id}","starred_url":"https://api.github.com/users/hodgestar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hodgestar/subscriptions","organizations_url":"https://api.github.com/users/hodgestar/orgs","repos_url":"https://api.github.com/users/hodgestar/repos","events_url":"https://api.github.com/users/hodgestar/events{/privacy}","received_events_url":"https://api.github.com/users/hodgestar/received_events","type":"User","site_admin":false},"body":"That sounds like a good idea.","created_at":"2015-05-18T10:23:02Z","updated_at":"2015-05-18T10:23:02Z","html_url":"https://github.com/praekelt/vumi-go-cuddlers/pull/51#discussion_r30496121","pull_request_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/comments/30496121"},"html":{"href":"https://github.com/praekelt/vumi-go-cuddlers/pull/51#discussion_r30496121"},"pull_request":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51","id":35498804,"html_url":"https://github.com/praekelt/vumi-go-cuddlers/pull/51","diff_url":"https://github.com/praekelt/vumi-go-cuddlers/pull/51.diff","patch_url":"https://github.com/praekelt/vumi-go-cuddlers/pull/51.patch","issue_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/51","number":51,"state":"open","locked":false,"title":"Make HTTP requests more resilient","user":{"login":"rudigiesler","id":8234653,"avatar_url":"https://avatars.githubusercontent.com/u/8234653?v=3","gravatar_id":"","url":"https://api.github.com/users/rudigiesler","html_url":"https://github.com/rudigiesler","followers_url":"https://api.github.com/users/rudigiesler/followers","following_url":"https://api.github.com/users/rudigiesler/following{/other_user}","gists_url":"https://api.github.com/users/rudigiesler/gists{/gist_id}","starred_url":"https://api.github.com/users/rudigiesler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudigiesler/subscriptions","organizations_url":"https://api.github.com/users/rudigiesler/orgs","repos_url":"https://api.github.com/users/rudigiesler/repos","events_url":"https://api.github.com/users/rudigiesler/events{/privacy}","received_events_url":"https://api.github.com/users/rudigiesler/received_events","type":"User","site_admin":false},"body":"Log the error and return an acceptable message rather than crashing and giving the user a timeout error for all HTTP requests.","created_at":"2015-05-15T09:47:03Z","updated_at":"2015-05-18T10:23:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e11272215ce011575fb259c8764c3c6ee886b818","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51/commits","review_comments_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51/comments","review_comment_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/51/comments","statuses_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/statuses/2169336b2fd019f0ede0341a394b5c953f28d574","head":{"label":"praekelt:feature/issue-51-make-http-requests-more-resilient","ref":"feature/issue-51-make-http-requests-more-resilient","sha":"2169336b2fd019f0ede0341a394b5c953f28d574","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":21977103,"name":"vumi-go-cuddlers","full_name":"praekelt/vumi-go-cuddlers","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/vumi-go-cuddlers","description":"A Vumi Go app for Cuddlers.","fork":false,"url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers","forks_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/forks","keys_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/teams","hooks_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/hooks","issue_events_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/events","assignees_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/tags","blobs_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/languages","stargazers_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/stargazers","contributors_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/contributors","subscribers_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/subscribers","subscription_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/subscription","commits_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/merges","archive_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/downloads","issues_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/releases{/id}","created_at":"2014-07-18T10:43:20Z","updated_at":"2014-10-13T10:05:28Z","pushed_at":"2015-05-15T09:47:03Z","git_url":"git://github.com/praekelt/vumi-go-cuddlers.git","ssh_url":"git@github.com:praekelt/vumi-go-cuddlers.git","clone_url":"https://github.com/praekelt/vumi-go-cuddlers.git","svn_url":"https://github.com/praekelt/vumi-go-cuddlers","homepage":null,"size":1124,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"praekelt:develop","ref":"develop","sha":"731cc14636421ed828c3ab6a88b7544d9088b0a4","user":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"repo":{"id":21977103,"name":"vumi-go-cuddlers","full_name":"praekelt/vumi-go-cuddlers","owner":{"login":"praekelt","id":81810,"avatar_url":"https://avatars.githubusercontent.com/u/81810?v=3","gravatar_id":"","url":"https://api.github.com/users/praekelt","html_url":"https://github.com/praekelt","followers_url":"https://api.github.com/users/praekelt/followers","following_url":"https://api.github.com/users/praekelt/following{/other_user}","gists_url":"https://api.github.com/users/praekelt/gists{/gist_id}","starred_url":"https://api.github.com/users/praekelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekelt/subscriptions","organizations_url":"https://api.github.com/users/praekelt/orgs","repos_url":"https://api.github.com/users/praekelt/repos","events_url":"https://api.github.com/users/praekelt/events{/privacy}","received_events_url":"https://api.github.com/users/praekelt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekelt/vumi-go-cuddlers","description":"A Vumi Go app for Cuddlers.","fork":false,"url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers","forks_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/forks","keys_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/teams","hooks_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/hooks","issue_events_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/events{/number}","events_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/events","assignees_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/assignees{/user}","branches_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/branches{/branch}","tags_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/tags","blobs_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/statuses/{sha}","languages_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/languages","stargazers_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/stargazers","contributors_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/contributors","subscribers_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/subscribers","subscription_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/subscription","commits_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/contents/{+path}","compare_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/merges","archive_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/downloads","issues_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues{/number}","pulls_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls{/number}","milestones_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/milestones{/number}","notifications_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/labels{/name}","releases_url":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/releases{/id}","created_at":"2014-07-18T10:43:20Z","updated_at":"2014-10-13T10:05:28Z","pushed_at":"2015-05-15T09:47:03Z","git_url":"git://github.com/praekelt/vumi-go-cuddlers.git","ssh_url":"git@github.com:praekelt/vumi-go-cuddlers.git","clone_url":"https://github.com/praekelt/vumi-go-cuddlers.git","svn_url":"https://github.com/praekelt/vumi-go-cuddlers","homepage":null,"size":1124,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51"},"html":{"href":"https://github.com/praekelt/vumi-go-cuddlers/pull/51"},"issue":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/51"},"comments":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/praekelt/vumi-go-cuddlers/statuses/2169336b2fd019f0ede0341a394b5c953f28d574"}}}}