-
Notifications
You must be signed in to change notification settings - Fork 331
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
Change to Request.get_json() in Werkzeug 2.1.0 breaks Argument.parse() #422
Labels
bug
Something isn't working
Comments
cedricbonhomme
added a commit
to NC3-LU/MOSP
that referenced
this issue
Mar 31, 2022
ernstwi
added a commit
to SUNET/te-canvas
that referenced
this issue
Apr 6, 2022
Any movement on this issue? I've run into this, and it has been blocking a long change of much needed dependency updates. For now, I've been able to find a work around by adding the code from the following link: |
This was referenced Jul 19, 2022
I fixed flask-restx/flask_restx/reqparse.py in my restx-monkey patches. I hope it will help you, feedback is welcome. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pallets/werkzeug#2339 changed the behavior of
Request.get_json()
and the
Request.json
property to raise aBadRequest
ifRequest.get_json()
is called, or theRequest.json
propertyis accessed and the content type is not
application/json
.Repro Steps (if applicable)
parse()
on anArgument
instance that is from aRequest
that is NOT content typeapplication/json
Expected Behavior
Argument should be parsed from the query string.
Actual Behavior
raises
Error Messages/Stack Trace
Environment
The text was updated successfully, but these errors were encountered: