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

Allow parsing of json error responses with non-json bodies. #1061

Merged
merged 3 commits into from
Dec 2, 2016

Conversation

balihoo-gens
Copy link
Contributor

Fixes Issue #908

By catching ValueErrors on json.loads when parsing the error's message body,
the raw message can be included as a string. This is not the common case,
but errors in an invalid format have been seen in Api Gateway, SWF and Dynamo

Fixes Issue boto#908

By catching ValueErrors on json.loads when parsing the error's message body,
the raw message can be included as a string. This is not the common case,
but errors in an invalid format have been seen in Api Gateway, SWF and Dynamo
@codecov-io
Copy link

codecov-io commented Oct 25, 2016

Current coverage is 97.57% (diff: 100%)

Merging #1061 into develop will increase coverage by <.01%

@@            develop      #1061   diff @@
==========================================
  Files            44         44          
  Lines          6917       6921     +4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6749       6753     +4   
  Misses          168        168          
  Partials          0          0          

Powered by Codecov. Last update 05b32e1...cfc126a

Copy link
Member

@jamesls jamesls left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me. Let's get one other person to take a look

cc @kyleknap @JordonPhillips

@balihoo-gens
Copy link
Contributor Author

cool. @kyleknap @JordonPhillips: let me know if there are any questions.

Copy link
Contributor

@JordonPhillips JordonPhillips left a comment

Choose a reason for hiding this comment

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

LGTM

@JordonPhillips JordonPhillips merged commit 7686624 into boto:develop Dec 2, 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.

4 participants