{"action":"opened","number":154,"pull_request":{"url":"https://api.github.com/repos/heroku/identity/pulls/154","id":35534526,"html_url":"https://github.com/heroku/identity/pull/154","diff_url":"https://github.com/heroku/identity/pull/154.diff","patch_url":"https://github.com/heroku/identity/pull/154.patch","issue_url":"https://api.github.com/repos/heroku/identity/issues/154","number":154,"state":"open","locked":false,"title":"Handle 429 errors from API","user":{"login":"dmcinnes","id":16557,"avatar_url":"https://avatars.githubusercontent.com/u/16557?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcinnes","html_url":"https://github.com/dmcinnes","followers_url":"https://api.github.com/users/dmcinnes/followers","following_url":"https://api.github.com/users/dmcinnes/following{/other_user}","gists_url":"https://api.github.com/users/dmcinnes/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcinnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcinnes/subscriptions","organizations_url":"https://api.github.com/users/dmcinnes/orgs","repos_url":"https://api.github.com/users/dmcinnes/repos","events_url":"https://api.github.com/users/dmcinnes/events{/privacy}","received_events_url":"https://api.github.com/users/dmcinnes/received_events","type":"User","site_admin":false},"body":"Currently when a user hitting identity is rate limited in API, we throw a 500 (and spam rollbar).\r\nThis fixes it to render the 503 error page, \"API Unavailable\", instead of \"Internal Server Error\", and no longer log them in Rollbar.\r\n\r\nReady for review @heroku/api ","created_at":"2015-05-15T17:43:07Z","updated_at":"2015-05-15T17:43:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/heroku/identity/pulls/154/commits","review_comments_url":"https://api.github.com/repos/heroku/identity/pulls/154/comments","review_comment_url":"https://api.github.com/repos/heroku/identity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/heroku/identity/issues/154/comments","statuses_url":"https://api.github.com/repos/heroku/identity/statuses/6226653d7e780ad67f85f7f7de9863d444421612","head":{"label":"heroku:doug-too-many-requests","ref":"doug-too-many-requests","sha":"6226653d7e780ad67f85f7f7de9863d444421612","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":7472185,"name":"identity","full_name":"heroku/identity","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/identity","description":"Login and OAuth management service for Heroku","fork":false,"url":"https://api.github.com/repos/heroku/identity","forks_url":"https://api.github.com/repos/heroku/identity/forks","keys_url":"https://api.github.com/repos/heroku/identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/identity/teams","hooks_url":"https://api.github.com/repos/heroku/identity/hooks","issue_events_url":"https://api.github.com/repos/heroku/identity/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/identity/events","assignees_url":"https://api.github.com/repos/heroku/identity/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/identity/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/identity/tags","blobs_url":"https://api.github.com/repos/heroku/identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/identity/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/identity/languages","stargazers_url":"https://api.github.com/repos/heroku/identity/stargazers","contributors_url":"https://api.github.com/repos/heroku/identity/contributors","subscribers_url":"https://api.github.com/repos/heroku/identity/subscribers","subscription_url":"https://api.github.com/repos/heroku/identity/subscription","commits_url":"https://api.github.com/repos/heroku/identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/identity/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/identity/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/identity/merges","archive_url":"https://api.github.com/repos/heroku/identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/identity/downloads","issues_url":"https://api.github.com/repos/heroku/identity/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/identity/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/identity/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/identity/labels{/name}","releases_url":"https://api.github.com/repos/heroku/identity/releases{/id}","created_at":"2013-01-06T20:17:00Z","updated_at":"2015-05-14T18:01:58Z","pushed_at":"2015-05-15T17:39:04Z","git_url":"git://github.com/heroku/identity.git","ssh_url":"git@github.com:heroku/identity.git","clone_url":"https://github.com/heroku/identity.git","svn_url":"https://github.com/heroku/identity","homepage":"https://id.heroku.com/","size":4306,"stargazers_count":217,"watchers_count":217,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":18,"forks":12,"open_issues":18,"watchers":217,"default_branch":"master"}},"base":{"label":"heroku:master","ref":"master","sha":"4765f474dadbeaacce882ff39ef3a48e28b8c3f5","user":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"repo":{"id":7472185,"name":"identity","full_name":"heroku/identity","owner":{"login":"heroku","id":23211,"avatar_url":"https://avatars.githubusercontent.com/u/23211?v=3","gravatar_id":"","url":"https://api.github.com/users/heroku","html_url":"https://github.com/heroku","followers_url":"https://api.github.com/users/heroku/followers","following_url":"https://api.github.com/users/heroku/following{/other_user}","gists_url":"https://api.github.com/users/heroku/gists{/gist_id}","starred_url":"https://api.github.com/users/heroku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroku/subscriptions","organizations_url":"https://api.github.com/users/heroku/orgs","repos_url":"https://api.github.com/users/heroku/repos","events_url":"https://api.github.com/users/heroku/events{/privacy}","received_events_url":"https://api.github.com/users/heroku/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/heroku/identity","description":"Login and OAuth management service for Heroku","fork":false,"url":"https://api.github.com/repos/heroku/identity","forks_url":"https://api.github.com/repos/heroku/identity/forks","keys_url":"https://api.github.com/repos/heroku/identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heroku/identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heroku/identity/teams","hooks_url":"https://api.github.com/repos/heroku/identity/hooks","issue_events_url":"https://api.github.com/repos/heroku/identity/issues/events{/number}","events_url":"https://api.github.com/repos/heroku/identity/events","assignees_url":"https://api.github.com/repos/heroku/identity/assignees{/user}","branches_url":"https://api.github.com/repos/heroku/identity/branches{/branch}","tags_url":"https://api.github.com/repos/heroku/identity/tags","blobs_url":"https://api.github.com/repos/heroku/identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heroku/identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heroku/identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/heroku/identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heroku/identity/statuses/{sha}","languages_url":"https://api.github.com/repos/heroku/identity/languages","stargazers_url":"https://api.github.com/repos/heroku/identity/stargazers","contributors_url":"https://api.github.com/repos/heroku/identity/contributors","subscribers_url":"https://api.github.com/repos/heroku/identity/subscribers","subscription_url":"https://api.github.com/repos/heroku/identity/subscription","commits_url":"https://api.github.com/repos/heroku/identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/heroku/identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/heroku/identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/heroku/identity/issues/comments{/number}","contents_url":"https://api.github.com/repos/heroku/identity/contents/{+path}","compare_url":"https://api.github.com/repos/heroku/identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heroku/identity/merges","archive_url":"https://api.github.com/repos/heroku/identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heroku/identity/downloads","issues_url":"https://api.github.com/repos/heroku/identity/issues{/number}","pulls_url":"https://api.github.com/repos/heroku/identity/pulls{/number}","milestones_url":"https://api.github.com/repos/heroku/identity/milestones{/number}","notifications_url":"https://api.github.com/repos/heroku/identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heroku/identity/labels{/name}","releases_url":"https://api.github.com/repos/heroku/identity/releases{/id}","created_at":"2013-01-06T20:17:00Z","updated_at":"2015-05-14T18:01:58Z","pushed_at":"2015-05-15T17:39:04Z","git_url":"git://github.com/heroku/identity.git","ssh_url":"git@github.com:heroku/identity.git","clone_url":"https://github.com/heroku/identity.git","svn_url":"https://github.com/heroku/identity","homepage":"https://id.heroku.com/","size":4306,"stargazers_count":217,"watchers_count":217,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":18,"forks":12,"open_issues":18,"watchers":217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/heroku/identity/pulls/154"},"html":{"href":"https://github.com/heroku/identity/pull/154"},"issue":{"href":"https://api.github.com/repos/heroku/identity/issues/154"},"comments":{"href":"https://api.github.com/repos/heroku/identity/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/heroku/identity/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/heroku/identity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/heroku/identity/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/heroku/identity/statuses/6226653d7e780ad67f85f7f7de9863d444421612"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}