{"action":"closed","number":139,"pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/139","id":170239824,"html_url":"https://github.com/alphagov/digitalmarketplace-search-api/pull/139","diff_url":"https://github.com/alphagov/digitalmarketplace-search-api/pull/139.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-search-api/pull/139.patch","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/139","number":139,"state":"closed","locked":false,"title":"Handle readtimeout error","user":{"login":"brenetic","id":3466862,"avatar_url":"https://avatars3.githubusercontent.com/u/3466862?v=4","gravatar_id":"","url":"https://api.github.com/users/brenetic","html_url":"https://github.com/brenetic","followers_url":"https://api.github.com/users/brenetic/followers","following_url":"https://api.github.com/users/brenetic/following{/other_user}","gists_url":"https://api.github.com/users/brenetic/gists{/gist_id}","starred_url":"https://api.github.com/users/brenetic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenetic/subscriptions","organizations_url":"https://api.github.com/users/brenetic/orgs","repos_url":"https://api.github.com/users/brenetic/repos","events_url":"https://api.github.com/users/brenetic/events{/privacy}","received_events_url":"https://api.github.com/users/brenetic/received_events","type":"User","site_admin":false},"body":"When handling a `TransportError` from Elasticsearch, if the error is a\r\n`ReadTimeoutError` it will not have the attribute `error` therefore we\r\nget the following stack trace:\r\n\r\n```\r\nAttributeError: 'ReadTimeoutError' object has no attribute 'get'\r\n```\r\n\r\nWe now catch the `AttributeError` and handle it accordingly.\r\n\r\nhttps://trello.com/c/1AU0vQC4","created_at":"2018-02-20T16:20:07Z","updated_at":"2018-02-21T13:28:28Z","closed_at":"2018-02-21T13:28:28Z","merged_at":"2018-02-21T13:28:28Z","merge_commit_sha":"97bf3f725c656551bcbfa348f41a5cb055454f7d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"TheDoubleK","id":6525554,"avatar_url":"https://avatars2.githubusercontent.com/u/6525554?v=4","gravatar_id":"","url":"https://api.github.com/users/TheDoubleK","html_url":"https://github.com/TheDoubleK","followers_url":"https://api.github.com/users/TheDoubleK/followers","following_url":"https://api.github.com/users/TheDoubleK/following{/other_user}","gists_url":"https://api.github.com/users/TheDoubleK/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDoubleK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDoubleK/subscriptions","organizations_url":"https://api.github.com/users/TheDoubleK/orgs","repos_url":"https://api.github.com/users/TheDoubleK/repos","events_url":"https://api.github.com/users/TheDoubleK/events{/privacy}","received_events_url":"https://api.github.com/users/TheDoubleK/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/139/commits","review_comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/139/comments","review_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/139/comments","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/statuses/3d34c9e77b5df939a2b2ca16804776456dcf84d9","head":{"label":"alphagov:handle-readtimeout-error","ref":"handle-readtimeout-error","sha":"3d34c9e77b5df939a2b2ca16804776456dcf84d9","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":30530410,"name":"digitalmarketplace-search-api","full_name":"alphagov/digitalmarketplace-search-api","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-search-api","description":"API to handle interactions between the digitalmarketplace applications and search applications.","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/deployments","created_at":"2015-02-09T10:24:46Z","updated_at":"2017-09-07T01:03:13Z","pushed_at":"2018-02-21T13:28:28Z","git_url":"git://github.com/alphagov/digitalmarketplace-search-api.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-search-api.git","clone_url":"https://github.com/alphagov/digitalmarketplace-search-api.git","svn_url":"https://github.com/alphagov/digitalmarketplace-search-api","homepage":null,"size":4416,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":6,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"4ba7c3ae8c4a1c54fed02385bec6b05cb3e44004","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":30530410,"name":"digitalmarketplace-search-api","full_name":"alphagov/digitalmarketplace-search-api","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-search-api","description":"API to handle interactions between the digitalmarketplace applications and search applications.","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/deployments","created_at":"2015-02-09T10:24:46Z","updated_at":"2017-09-07T01:03:13Z","pushed_at":"2018-02-21T13:28:28Z","git_url":"git://github.com/alphagov/digitalmarketplace-search-api.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-search-api.git","clone_url":"https://github.com/alphagov/digitalmarketplace-search-api.git","svn_url":"https://github.com/alphagov/digitalmarketplace-search-api","homepage":null,"size":4416,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":6,"open_issues":0,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/139"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-search-api/pull/139"},"issue":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/139"},"comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-search-api/statuses/3d34c9e77b5df939a2b2ca16804776456dcf84d9"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"brenetic","id":3466862,"avatar_url":"https://avatars3.githubusercontent.com/u/3466862?v=4","gravatar_id":"","url":"https://api.github.com/users/brenetic","html_url":"https://github.com/brenetic","followers_url":"https://api.github.com/users/brenetic/followers","following_url":"https://api.github.com/users/brenetic/following{/other_user}","gists_url":"https://api.github.com/users/brenetic/gists{/gist_id}","starred_url":"https://api.github.com/users/brenetic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenetic/subscriptions","organizations_url":"https://api.github.com/users/brenetic/orgs","repos_url":"https://api.github.com/users/brenetic/repos","events_url":"https://api.github.com/users/brenetic/events{/privacy}","received_events_url":"https://api.github.com/users/brenetic/received_events","type":"User","site_admin":false},"comments":0,"review_comments":8,"maintainer_can_modify":false,"commits":2,"additions":7,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"brenetic"}}