{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/7434","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/7434/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/7434/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/7434/events","html_url":"https://github.com/edx/edx-platform/pull/7434","id":63272901,"number":7434,"title":"XCOM-147: Change error handling to report back internal errors.","user":{"login":"stephensanchez","id":235752,"avatar_url":"https://avatars.githubusercontent.com/u/235752?v=3","gravatar_id":"","url":"https://api.github.com/users/stephensanchez","html_url":"https://github.com/stephensanchez","followers_url":"https://api.github.com/users/stephensanchez/followers","following_url":"https://api.github.com/users/stephensanchez/following{/other_user}","gists_url":"https://api.github.com/users/stephensanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/stephensanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephensanchez/subscriptions","organizations_url":"https://api.github.com/users/stephensanchez/orgs","repos_url":"https://api.github.com/users/stephensanchez/repos","events_url":"https://api.github.com/users/stephensanchez/events{/privacy}","received_events_url":"https://api.github.com/users/stephensanchez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-20T17:45:55Z","updated_at":"2015-03-23T17:26:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/7434","html_url":"https://github.com/edx/edx-platform/pull/7434","diff_url":"https://github.com/edx/edx-platform/pull/7434.diff","patch_url":"https://github.com/edx/edx-platform/pull/7434.patch"},"body":"This is related to JIRA Ticket: https://openedx.atlassian.net/browse/XCOM-147\r\nOriginally, our errors from the new commerce endpoint in the LMS were returning 503 when there was an error with the internal request to the E-Commerce Service. This change is designed to retain some additional information about the underlying request failures.\r\n\r\nI wanted to be careful to not just simply propagate the response code from the internal request. Saying that the LMS commerce end point 'timed out' because the E-Commerce end point did, would end up being pretty confusing. Instead, I added the internal response message and status code to the error message. \r\n\r\nThoughts?\r\n@clintonb @rlucioni  "},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/85112854","html_url":"https://github.com/edx/edx-platform/pull/7434#issuecomment-85112854","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/7434","id":85112854,"user":{"login":"stephensanchez","id":235752,"avatar_url":"https://avatars.githubusercontent.com/u/235752?v=3","gravatar_id":"","url":"https://api.github.com/users/stephensanchez","html_url":"https://github.com/stephensanchez","followers_url":"https://api.github.com/users/stephensanchez/followers","following_url":"https://api.github.com/users/stephensanchez/following{/other_user}","gists_url":"https://api.github.com/users/stephensanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/stephensanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephensanchez/subscriptions","organizations_url":"https://api.github.com/users/stephensanchez/orgs","repos_url":"https://api.github.com/users/stephensanchez/repos","events_url":"https://api.github.com/users/stephensanchez/events{/privacy}","received_events_url":"https://api.github.com/users/stephensanchez/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T17:26:01Z","updated_at":"2015-03-23T17:26:01Z","body":"Failure is due to a flaky bok-choy test. "}}