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

Handle the case where we receive a generic html error response #850

Merged
merged 2 commits into from
Mar 24, 2016

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Mar 23, 2016

@jamesls jamesls force-pushed the fix-response-metadata branch from ba00ba7 to 7700cd6 Compare March 23, 2016 22:48
Fixes boto/boto3#339.

I also had to fix an unrelated test because the response
body is always read as bytes(), and two of the functional
tests were using str().
@jamesls jamesls force-pushed the fix-response-metadata branch from 7700cd6 to afe0ace Compare March 23, 2016 23:04
@JordonPhillips
Copy link
Contributor

What do you think about populating those values with the HTTP error codes? Otherwise CLI users are not going to have any idea what just happened.

Give the user some idea of what went wrong.
@jamesls
Copy link
Member Author

jamesls commented Mar 23, 2016

@JordonPhillips feedback incorporated.

@JordonPhillips
Copy link
Contributor

@kyleknap
Copy link
Contributor

Looks good. 🚢 Do you think that this fix also partially resolves this issue: aws/aws-cli#1679 for when the proxy returns straight html?

@jamesls
Copy link
Member Author

jamesls commented Mar 24, 2016

@kyleknap It should. Looking at their output it looks like this should fix that case because we're getting an HTML error page back from the proxy. Excellent.

@jamesls jamesls merged commit 53882cc into boto:develop Mar 24, 2016
@jamesls jamesls mentioned this pull request Mar 24, 2016
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.

3 participants