-
Notifications
You must be signed in to change notification settings - Fork 578
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
Request.Response can only be called once per request #6
Comments
|
Is voluntary, a valid json is always a dict, here fails to make the conversion to json. |
It's a wart in the API design, I need to refactor this part. What is happening here is that an error is generated in an error handler and since request.Response was already constructed and it's immutable. It fails in a weird way swallowing the real reason. So this is really about making Response mutable. |
@kianxineki The error doesnt happen because of invalid JSON. Python JSON module will happily transform a list in a JSON array. I don't impose any extra restrictions here. This happens because of missing return. Anyway this is an error and needs to be fixed. |
Finally figured out what it is all about.
|
If an exception is generated in the response this error appears and the request is blocked
The text was updated successfully, but these errors were encountered: