You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error.
Your data request could not be completed within X minutes. Therefore, it was cancelled.
This problem might have been caused by requesting too much data at once.
In case of any questions, please contact ${the administrator}.
(where X is the DB timeout duration and the administrator can be relplaced with a name and link to the persons email address)
Ideally, this message should only be shown if a DB timeout occurs but not if the application does not respond for some other reason.
Tasks
Fix the score first (because we can test it) and then see if we can apply the fix to other queries as well.
Check get_score_data() in sql.py or get_filtered_data() in db.py as entry point
Add try/catch block for OperationalError: (psycopg2.extensions.QueryCanceledError) (see psycopg2 documentation) -> turned out to be a sqlalchemy.exc.OperationalError
This ticket mainly refers to the error message after a DB timeout, which currently states something about a proxy error.
Steps to reproduce
Change the config in your local development setup to reproduce the error easily:
Observed behavior
The frontend shows the following error:
The server logs OperationalError error:
Expected behavior
Please change it to something like:
(where X is the DB timeout duration and the administrator can be relplaced with a name and link to the persons email address)
Ideally, this message should only be shown if a DB timeout occurs but not if the application does not respond for some other reason.
Tasks
Fix the score first (because we can test it) and then see if we can apply the fix to other queries as well.
get_score_data()
in sql.py orget_filtered_data()
in db.py as entry pointOperationalError: (psycopg2.extensions.QueryCanceledError)
(see psycopg2 documentation) -> turned out to be asqlalchemy.exc.OperationalError
abort(408, error.message)
errorAlertHandler
in notifications.ts to print custom error message as described aboveCurrent error message:
Definition of done
The text was updated successfully, but these errors were encountered: