{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/comments/36640278","id":36640278,"diff_hunk":"@@ -104,6 +105,14 @@ module.exports = function (req, res, next) {\n \n \t\t\t\tres.json(responseObject);\n \t\t\t})\n+\t\t\t.catch(function(err) {\n+\t\t\t\tif (err.name === fetchres.BadServerResponseError.name\n+\t\t\t\t\t|| err.name.indexOf('timeout') > -1) {\n+\t\t\t\t\tres.sendStatus(504);","path":"server/controllers/v1/feed.js","position":15,"original_position":15,"commit_id":"768ea13f7c8c4fdf485f44887010c87dad05ff42","original_commit_id":"768ea13f7c8c4fdf485f44887010c87dad05ff42","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"it will be logged in fastly i believe, what additional debug do we need?","created_at":"2015-08-10T14:56:23Z","updated_at":"2015-08-10T14:56:23Z","html_url":"https://github.com/Financial-Times/next-personalised-feed-api/pull/15#discussion_r36640278","pull_request_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/comments/36640278"},"html":{"href":"https://github.com/Financial-Times/next-personalised-feed-api/pull/15#discussion_r36640278"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15","id":42015383,"html_url":"https://github.com/Financial-Times/next-personalised-feed-api/pull/15","diff_url":"https://github.com/Financial-Times/next-personalised-feed-api/pull/15.diff","patch_url":"https://github.com/Financial-Times/next-personalised-feed-api/pull/15.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/15","number":15,"state":"open","locked":false,"title":"Don't send http errors to Sentry.","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"@phamann ","created_at":"2015-08-10T12:39:05Z","updated_at":"2015-08-10T14:56:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b302946185409fd20883522a9573250aa4e6d5ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/15/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/statuses/768ea13f7c8c4fdf485f44887010c87dad05ff42","head":{"label":"Financial-Times:errors","ref":"errors","sha":"768ea13f7c8c4fdf485f44887010c87dad05ff42","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":39065995,"name":"next-personalised-feed-api","full_name":"Financial-Times/next-personalised-feed-api","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-personalised-feed-api","description":"Generator for a user's personalised content feed (beginning with follow & saved for later, but growing outward)","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api","forks_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/releases{/id}","created_at":"2015-07-14T09:27:06Z","updated_at":"2015-07-15T11:08:48Z","pushed_at":"2015-08-10T13:02:30Z","git_url":"git://github.com/Financial-Times/next-personalised-feed-api.git","ssh_url":"git@github.com:Financial-Times/next-personalised-feed-api.git","clone_url":"https://github.com/Financial-Times/next-personalised-feed-api.git","svn_url":"https://github.com/Financial-Times/next-personalised-feed-api","homepage":null,"size":364,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"d913ca2ba432ac7611fe2fb2242fca1e68da6495","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":39065995,"name":"next-personalised-feed-api","full_name":"Financial-Times/next-personalised-feed-api","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-personalised-feed-api","description":"Generator for a user's personalised content feed (beginning with follow & saved for later, but growing outward)","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api","forks_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/releases{/id}","created_at":"2015-07-14T09:27:06Z","updated_at":"2015-07-15T11:08:48Z","pushed_at":"2015-08-10T13:02:30Z","git_url":"git://github.com/Financial-Times/next-personalised-feed-api.git","ssh_url":"git@github.com:Financial-Times/next-personalised-feed-api.git","clone_url":"https://github.com/Financial-Times/next-personalised-feed-api.git","svn_url":"https://github.com/Financial-Times/next-personalised-feed-api","homepage":null,"size":364,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15"},"html":{"href":"https://github.com/Financial-Times/next-personalised-feed-api/pull/15"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/15"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-personalised-feed-api/statuses/768ea13f7c8c4fdf485f44887010c87dad05ff42"}}}}