How and where best to handle errors related to connection loss to Zino server #105
Replies: 9 comments 13 replies
-
The ideal solution would require minimum action from the user. So fixing the issue without redirect to login is a basis I think. |
Beta Was this translation helpful? Give feedback.
-
I have a branch in zinolib that catches BrokenPipe in one place we know it can happen, and translates it to something easier to understand for a human (LostConnectionError). If there is a global exception handler, if it can catch and treat LostConnectionError and BrokenPipe as the same thing and relogin the user behind the scenes, that should be suffcient I think. |
Beta Was this translation helpful? Give feedback.
-
Bug report in zinolib Uninett/zinolib#60 |
Beta Was this translation helpful? Give feedback.
-
PR with fix for the problem with having to restart the app completely when losing connection to Zino server: #110 |
Beta Was this translation helpful? Give feedback.
-
Created #115 |
Beta Was this translation helpful? Give feedback.
-
Created #116 |
Beta Was this translation helpful? Give feedback.
-
With zinolib 1.2.0, on running manager.test_connection() we will now get another source of TimeoutError. I tried running the test just before the |
Beta Was this translation helpful? Give feedback.
-
We should find a way to run Then there's the matter of what to do on a timeout. Show a fail-whale? Retry after 5, 10 minutes or on manual reload of page? |
Beta Was this translation helpful? Give feedback.
-
Okay, I just heard from @runborg that the zino 1 server has a problem with it's ntie sockets. There's no keep-alive, which means that with for instance the right/wrong firewall between the server and the clients, the ntie socket will quietly die regardless. We've quickly sketched out several mitigations:
Regardless, something will need to change in the actual server. |
Beta Was this translation helpful? Give feedback.
-
Per bug described in #94: Uninett/zinolib#59 makes error message more user friendly yet the problem itself is not yet fixed.
Questions:
Briefly on current authentication in Howitz:
flask-login
Session
and Zino server authentication must be OK for user to be considered authenticated. If at least 1 of them in not OK the current app behaviour is to redirect to/login
Related issues:
Beta Was this translation helpful? Give feedback.
All reactions