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
Failed get_json #1786
Comments
please provide more context, like what wsgi gateway is being used, what versions are involved and get us some proactive information because what you wrote cannot possibly help in guessing/comprehending what's wrong on your side |
@RonnyPfannschmidt Thank you for reminding me. behind nginx/1.4.6 we see errors from sentry like |
Well that looks a lot like you are sending data that's not valid JSON. |
at first glance this looks like a complete http message is being sent as body of a request, this could be a bad client, does this happen from your tests or is the source a certain customer/user |
this only occurs Occasionally in one of our API to which client post analytics in batch mode. |
The |
I also encountered this problem. In case it would help anyone else, I found that with sentry commented out, the get_json() worked. However, with the exact same request while using sentry it failed every time. Seems to be an issue with sentry? Edit: Figured it out, I didn't have the content type set in my jquery requests. I was using get_json(force=True). Which was fine until I added sentry. Apparently the behavior of get_json changes when you use sentry. To fix I just added this to my jquery ajax request: contentType: "application/json" |
hi, we find a strange error, sometime request.get_json(force=True) will fail.
And,
flask/flask/wrappers.py
Line 151 in c9b29f4
data here is http header in string instead of http body!!
The text was updated successfully, but these errors were encountered: