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

Response finished dvhb_hybrid.exceptions.HTTPOk not decoded properly #11

Open
radiophysicist opened this issue Nov 6, 2017 · 1 comment

Comments

@radiophysicist
Copy link
Contributor

To properly decode JSON response of API call finished with dvhb_hybrid.exceptions.HTTPOk (and probably other similar exceptions) one have to explicitly specify 'content_type' constructor argument as follows:

raise exceptions.HTTPOk(content_type='application/json')

whereas HTTPOk is already inherited from JsonHTTPMessage

@aamalev
Copy link
Collaborator

aamalev commented Nov 19, 2017

dvhb_hybrid.exceptions is DEPRECATED, use aiohttp.web_exceptions instead of it

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

No branches or pull requests

2 participants