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

Bug with Scheduler API with newer versions of Werkzeug #203

Closed
zexpe opened this issue Apr 5, 2022 · 1 comment · Fixed by #204
Closed

Bug with Scheduler API with newer versions of Werkzeug #203

zexpe opened this issue Apr 5, 2022 · 1 comment · Fixed by #204

Comments

@zexpe
Copy link

zexpe commented Apr 5, 2022

Calling the "/scheduler/jobs" route works with Werkzeug 0.14.1, but on a newer system upgraded to 2.0.1, I get the following error:

Internal Server Error: AttributeError: 'Request' object has no attribute 'is_xhr'

This line is to blame:

File "~/.local/lib/python3.9/site-packages/flask_apscheduler/json.py", line 21, in jsonify
if flask.current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not flask.request.is_xhr:

Apparently is_xhr is deprecated in newer versions of Werkzeug.

@viniciuschiele
Copy link
Owner

Thanks for reporting that, I will release a fix

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

Successfully merging a pull request may close this issue.

2 participants