annotation_tools icon indicating copy to clipboard operation
annotation_tools copied to clipboard

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

Open matt-bernstein opened this issue 4 years ago • 1 comments

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

matt-bernstein avatar Jan 08 '21 21:01 matt-bernstein

see need patch

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

AlexandrParkhomenko avatar Jan 29 '21 18:01 AlexandrParkhomenko