Exceptions encountered during HTTP requests are currently raised but unhandled. This results in unexpected behavior, a lack of an error message in the logs (the Python traceback is simply printed to stderr), and no apparent error to the user if they are not watching the terminal.
This should be improved to:
Fully define the resulting behavior (ensure views do not represent failed changes)
Catch and log errors
Show an error dialog where appropriate
On a related note, the HTTP client system could be improved to handle (refresh) expired JWT tokens.
Exceptions encountered during HTTP requests are currently raised but unhandled. This results in unexpected behavior, a lack of an error message in the logs (the Python traceback is simply printed to stderr), and no apparent error to the user if they are not watching the terminal.
This should be improved to:
On a related note, the HTTP client system could be improved to handle (refresh) expired JWT tokens.