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

Explain client limitations for non-2XX error codes #34

Merged
merged 1 commit into from
Nov 24, 2019
Merged

Explain client limitations for non-2XX error codes #34

merged 1 commit into from
Nov 24, 2019

Conversation

mheinzel
Copy link
Contributor

As was suggested in issue #27, I added a few lines to the README describing the problem of servant-client swallowing non-2XX HTTP response codes.
I also added similar comments to the relevant parts of the example API and the docstring for ErrStatus.

Not sure what to do about the instructions for running the example client in the README. They suggest the client would correctly return e.g. the search term was not "Hello", which is not true. Maybe we can leave it for now and focus on fixing the source of the problem instead. I will see if I can find a way to change servant-client without causing too much breakage.

Not being able to correctly decode responses with a non-2XX status code
in servant-client is an important limitation that should be mentioned in
the README as already suggested in issue #27.
@cdepillabout
Copy link
Owner

Thanks a lot for updating this as well.

I will see if I can find a way to change servant-client without causing too much breakage.

I'll be very interested in seeing if you can come up with something good!

@cdepillabout cdepillabout merged commit a895ef5 into cdepillabout:master Nov 24, 2019
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.

2 participants