Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recover from failures to parse error from http response #4

Merged
merged 3 commits into from
Sep 25, 2017

Conversation

apoloval
Copy link

So we have at least information about the requested path, method, status code, etc.

Copy link

@simonsargeant simonsargeant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to set status code at all? 500?

@apoloval
Copy link
Author

No, this code is not catching request errors but the errors produced parsing the error response from the body. So the status code is that caught from the response.

@apoloval apoloval merged commit 83e189f into master Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants