-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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.is_xhr deprecated" warning during jsonify() #2549
Comments
That depends on what you are using it for. And since this is not a place to ask for help but an issue tracker, please ask this question in the #pocoo IRC channel on freenode or on Stack Overflow. |
@ThiefMaster Maybe I didn't make myself clear here. This is an issue with Flask. It should not be accessing Request.is_xhr. So this needs fixing so that Flask does not access Request.is_xhr. Or am I totally misunderstanding? |
Oh indeed, I didn't notice it's coming from within Flask. As a workaround on your side, simply disable |
Master already removed this. |
Sweet, thank you! |
Still getting this when using jsonify with flask, with python 3.6 :( |
@KoJoVe this was fixed in master but there was no release since. Until next Flask version is released, you may disable |
Oh, I did not understood that there was no releases since then. Thank you very much! |
This now completely breaks for me using 0.10.1 Flask (as of today). 0.12.4 did have the option of disabling Complete error for other poor souls who might eventually get here like I did;
|
@AndySeymour2904 I am using the same version as you, The request.is_xhr is not present & giving trouble. Just set value of JSONIFY_PRETTYPRINT_REGULAR = False |
The problem is because flask doesn't lock it's dependencies. https://github.com/pallets/flask/blob/0.12.x/setup.py#L74 It installs |
It seems
Request.is_xhr
is deprecated. Getting warnings here... How do we fix this?The text was updated successfully, but these errors were encountered: