{"action":"created","issue":{"url":"https://api.github.com/repos/uber/rides-python-sdk/issues/13","repository_url":"https://api.github.com/repos/uber/rides-python-sdk","labels_url":"https://api.github.com/repos/uber/rides-python-sdk/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/uber/rides-python-sdk/issues/13/comments","events_url":"https://api.github.com/repos/uber/rides-python-sdk/issues/13/events","html_url":"https://github.com/uber/rides-python-sdk/pull/13","id":156531731,"number":13,"title":"Make ErrorDetails dumpable, print errors array when failing.","user":{"login":"nudge","id":360201,"avatar_url":"https://avatars.githubusercontent.com/u/360201?v=3","gravatar_id":"","url":"https://api.github.com/users/nudge","html_url":"https://github.com/nudge","followers_url":"https://api.github.com/users/nudge/followers","following_url":"https://api.github.com/users/nudge/following{/other_user}","gists_url":"https://api.github.com/users/nudge/gists{/gist_id}","starred_url":"https://api.github.com/users/nudge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nudge/subscriptions","organizations_url":"https://api.github.com/users/nudge/orgs","repos_url":"https://api.github.com/users/nudge/repos","events_url":"https://api.github.com/users/nudge/events{/privacy}","received_events_url":"https://api.github.com/users/nudge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-24T15:03:51Z","updated_at":"2016-05-30T07:39:46Z","closed_at":"2016-05-30T07:39:46Z","pull_request":{"url":"https://api.github.com/repos/uber/rides-python-sdk/pulls/13","html_url":"https://github.com/uber/rides-python-sdk/pull/13","diff_url":"https://github.com/uber/rides-python-sdk/pull/13.diff","patch_url":"https://github.com/uber/rides-python-sdk/pull/13.patch"},"body":"The error message `The request contains bad syntax or cannot be filled due to a fault from the client sending the request.` is not very descriptive when a `ClientError` occurs. Also, trying to print the `errors` array results in:\r\n\r\n    <uber_rides.errors.ErrorDetails object at 0x10e630690>\r\n\r\nThis pull request adds a string representation for `ErrorDetails` so it is easily dumped. This pull request also prints out the `errors` array in `fail_print()` in the example app to give the user more details. For example:\r\n\r\n    The request contains bad syntax or cannot be filled due to a fault from the client sending the request. \r\n    [ErrorDetails: 401 unauthorized Missing scope: request] "},"comment":{"url":"https://api.github.com/repos/uber/rides-python-sdk/issues/comments/222431477","html_url":"https://github.com/uber/rides-python-sdk/pull/13#issuecomment-222431477","issue_url":"https://api.github.com/repos/uber/rides-python-sdk/issues/13","id":222431477,"user":{"login":"nudge","id":360201,"avatar_url":"https://avatars.githubusercontent.com/u/360201?v=3","gravatar_id":"","url":"https://api.github.com/users/nudge","html_url":"https://github.com/nudge","followers_url":"https://api.github.com/users/nudge/followers","following_url":"https://api.github.com/users/nudge/following{/other_user}","gists_url":"https://api.github.com/users/nudge/gists{/gist_id}","starred_url":"https://api.github.com/users/nudge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nudge/subscriptions","organizations_url":"https://api.github.com/users/nudge/orgs","repos_url":"https://api.github.com/users/nudge/repos","events_url":"https://api.github.com/users/nudge/events{/privacy}","received_events_url":"https://api.github.com/users/nudge/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T07:39:46Z","updated_at":"2016-05-30T07:39:46Z","body":"Merged these changes into the internal repo which will be reflected in the public repo soon. Closing this out."}}
{"actor":{"display_login":"nudge"}}