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

AttributeError: 'Request' object has no attribute 'is_xhr' #19

Open
matt-bernstein opened this issue Jan 8, 2021 · 1 comment
Open

Comments

@matt-bernstein
Copy link

Got this error while trying to view or edit any image in the browser. The root cause is in flask - see discussion here.

The fix, as described in that thread, is to pin Werkzeug to an older version from before this function was deprecated. Add the following line to requirements.txt before installing:

werkzeug==0.16.1
@AlexandrParkhomenko
Copy link

AlexandrParkhomenko commented Jan 29, 2021

see
need patch

request.headers.get("X-Requested-With") == "XMLHttpRequest"

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

No branches or pull requests

2 participants