{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/e-petitions/issues/351","labels_url":"https://api.github.com/repos/alphagov/e-petitions/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/e-petitions/issues/351/comments","events_url":"https://api.github.com/repos/alphagov/e-petitions/issues/351/events","html_url":"https://github.com/alphagov/e-petitions/pull/351","id":96645268,"number":351,"title":"Rescue Faraday::ClientError as well as Faraday::ResourceNotFound","user":{"login":"pixeltrix","id":6321,"avatar_url":"https://avatars.githubusercontent.com/u/6321?v=3","gravatar_id":"","url":"https://api.github.com/users/pixeltrix","html_url":"https://github.com/pixeltrix","followers_url":"https://api.github.com/users/pixeltrix/followers","following_url":"https://api.github.com/users/pixeltrix/following{/other_user}","gists_url":"https://api.github.com/users/pixeltrix/gists{/gist_id}","starred_url":"https://api.github.com/users/pixeltrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixeltrix/subscriptions","organizations_url":"https://api.github.com/users/pixeltrix/orgs","repos_url":"https://api.github.com/users/pixeltrix/repos","events_url":"https://api.github.com/users/pixeltrix/events{/privacy}","received_events_url":"https://api.github.com/users/pixeltrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-22T19:26:44Z","updated_at":"2015-07-22T19:50:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/e-petitions/pulls/351","html_url":"https://github.com/alphagov/e-petitions/pull/351","diff_url":"https://github.com/alphagov/e-petitions/pull/351.diff","patch_url":"https://github.com/alphagov/e-petitions/pull/351.patch"},"body":"If someone enters garbage into the postcode field it can cause the parliament api to return a 400 Bad Request which Faraday raises as a ClientError. We don't want to know about these so rescue them along with the 404 Not Found responses."},"comment":{"url":"https://api.github.com/repos/alphagov/e-petitions/issues/comments/123843689","html_url":"https://github.com/alphagov/e-petitions/pull/351#issuecomment-123843689","issue_url":"https://api.github.com/repos/alphagov/e-petitions/issues/351","id":123843689,"user":{"login":"alanth","id":1016581,"avatar_url":"https://avatars.githubusercontent.com/u/1016581?v=3","gravatar_id":"","url":"https://api.github.com/users/alanth","html_url":"https://github.com/alanth","followers_url":"https://api.github.com/users/alanth/followers","following_url":"https://api.github.com/users/alanth/following{/other_user}","gists_url":"https://api.github.com/users/alanth/gists{/gist_id}","starred_url":"https://api.github.com/users/alanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanth/subscriptions","organizations_url":"https://api.github.com/users/alanth/orgs","repos_url":"https://api.github.com/users/alanth/repos","events_url":"https://api.github.com/users/alanth/events{/privacy}","received_events_url":"https://api.github.com/users/alanth/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T19:50:16Z","updated_at":"2015-07-22T19:50:16Z","body":"Nice."}}