Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Re-running when session is timed out results in a Internal Server Error #75

Open
Pasarus opened this issue Aug 18, 2022 · 0 comments
Open

Comments

@Pasarus
Copy link
Member

Pasarus commented Aug 18, 2022

When you open a summary of a run, and forget about it so the session times out, but then try to start a rerun, an Internal Server Error is thrown.

This is because the user gets redirected to UOWS, which then goes back to /run/confirmation, but without any of the POST information.

This is the full trace from Kibana but it doesn’t look very useful

Error: Expected AND, OR, end of input but "/" found.
message:"[2021-04-27 17:37:47 +0100] [27] [ERROR] Error handling request /runs/INTER/confirmation/
Traceback (most recent call last):
    File "/usr/local/lib/python3.6/dist-packages/gunicorn/workers/sync.py", line 136, in handle self.handle_request(listener, req, client, addr)
    File "/usr/local/lib/python3.6/dist-packages/gunicorn/workers/sync.py", line 179, in handle_request respiter = self.wsgi(environ, resp.start_response)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/wsgi.py", line 133, in __call__ response = self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 130, in get_response response = self._middleware_chain(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/utils/deprecation.py", line 117, in __call__ response = response or self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/utils/deprecation.py", line 117, in __call__ response = response or self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/utils/deprecation.py", line 117, in __call__ response = response or self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/utils/deprecation.py", line 117, in __call__ response = response or self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/utils/deprecation.py", line 117, in __call__ response = response or self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django_user_agents/middleware.py", line 14, in __call__ return self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/utils/deprecation.py", line 117, in __call__ response = response or self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django_plotly_dash/middleware.py", line 99, in __call__ response = self.get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 49, in inner response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 114, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request)
  File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/autoreduce/WebApp/autoreduce_webapp/autoreduce_webapp/view_utils.py", line 58, in request_processor return func(request, *args, **kws)
  File "/autoreduce/WebApp/autoreduce_webapp/autoreduce_webapp/view_utils.py", line 238, in request_processor return func(request, *args, **kwargs)
  File "/autoreduce/WebApp/autoreduce_webapp/autoreduce_webapp/view_utils.py", line 163, in wrapper output = function_name(request, *args, **kw)
  File "/autoreduce/WebApp/autoreduce_webapp/instrument/views/runs.py", line 95, in run_confirmation run_numbers = input_processing.parse_user_run_numbers(range_string)
  File "/autoreduce/WebApp/autoreduce_webapp/utilities/input_processing.py", line 22, in parse_user_run_numbers is_list = any(x in user_input for x in allowed_non_numeric)
  File "/autoreduce/WebApp/autoreduce_webapp/utilities/input_processing.py", line 22, in <genexpr> is_list = any(x in user_input for x in allowed_non_numeric)

TypeError: argument of type 'NoneType' is not iterable"

----------------------------------------------------------------------------------------------------------------------------------------------^

    at Object.fromKueryExpression (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/plugin/data/data.plugin.js:1:386086)

    at https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/plugin/infra/infra.chunk.1.js:103:17156

    at Object.useMemo (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:382:64610)

    at useMemo (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:353:5228)

    at useLogStream (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/plugin/infra/infra.chunk.1.js:103:17023)

    at Provider (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/plugin/infra/infra.chunk.0.js:3:75009)

    at da (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:382:59332)

    at $a (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:382:67554)

    at xs (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:382:105587)

    at fl (https://reduce.isis.cclrc.ac.uk/kibana/39309/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:382:90018)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant