Traceback (most recent call last):
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/core/handlers/base.py", line 204, in _get_response
self.check_response(response, callback)
File "/opt/omero/web/venv3/lib64/python3.9/site-packages/django/core/handlers/base.py", line 332, in check_response
raise ValueError(
ValueError: The view omero_tagsearch.views.tag_image_search didn't return an HttpResponse object. It returned None instead.
I don't know if there's anything obvious in the JavaScript code that might suggest how this was called without GET? Maybe some kind of OPTIONS request?
I think it's probably save to remove the request.method == "GET" check, since it's not essential to enforce this (as it is with e.g POST).
Just saw this issue at https://www.openmicroscopy.org/qa2/qa/feedback/41689/
Don't know how this error was produced (or what version of the app) but just looking at the code, it looks like the only way that you could get None returned is if the
request.method == "GET"
wasn't True at https://github.com/German-BioImaging/omero-tagsearch/blob/7f166a972e39db9a9ce10379dbde80145b25607c/omero_tagsearch/views.py#L286I don't know if there's anything obvious in the JavaScript code that might suggest how this was called without GET? Maybe some kind of
OPTIONS
request? I think it's probably save to remove therequest.method == "GET"
check, since it's not essential to enforce this (as it is with e.g POST).