Navigation Menu

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

capture :status_code and :raw_body #186

Merged
merged 1 commit into from Mar 16, 2016
Merged

capture :status_code and :raw_body #186

merged 1 commit into from Mar 16, 2016

Conversation

zawaideh
Copy link
Contributor

API request errors are not returning the body of the response when it is not in JSON format.

I reordered the lines so that the status code and raw body are captured before attempting to parse the json

API request errors are not returning the body of the response when it is not in JSON format. 

I reordered the lines so that the status code and raw body are captured before attempting to parse the json
@amro
Copy link
Owner

amro commented Mar 15, 2016

And thanks for catching this

@amro
Copy link
Owner

amro commented Mar 16, 2016

I'll merge this as is for now. If you feel inclined, please to send another PR w/ a test case. Otherwise I'll try to add one later.

amro added a commit that referenced this pull request Mar 16, 2016
capture :status_code and :raw_body
@amro amro merged commit ae9ec6b into amro:master Mar 16, 2016
@shayfrendt
Copy link
Contributor

@zawaideh You might look at this test as an example to go off of.

@zawaideh
Copy link
Contributor Author

@amro @shayfrendt will look into as soon as I get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants