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
Since recent updates, I've been noticing unprecedented issues with Immich login. From time to time, when I open the app, I have to log in again. Endpoint is usually kept (apart one time where it defaulted to demo), but this is becoming annoying.
I've investigated the logs, and I've noticed that AuthenticationNotifier returns ApiException 400 even if the error is related to the network:
Authentication should only be reset if status_code == 401 || status_code == 403, as it's the proper code for Authorization issues.
If the endpoint isn't reachable, 5xx class status codes should be used instead of 4xx, preventing the aforementioned issues
If logout fails, the client shouldn't consider itself as logged out, as the logout didn't effectively happen. A force log-out may be useful, but it should be clear for the user that his session has not been closed properly.
The OS that Immich Server is running on
TrueNAS Scale
Version of Immich Server
v1.106.4
Version of Immich Mobile App
v.106.4
Platform with the issue
Server
Web
Mobile
The text was updated successfully, but these errors were encountered:
The bug
Since recent updates, I've been noticing unprecedented issues with Immich login. From time to time, when I open the app, I have to log in again. Endpoint is usually kept (apart one time where it defaulted to demo), but this is becoming annoying.
I've investigated the logs, and I've noticed that
AuthenticationNotifier
returnsApiException 400
even if the error is related to the network:This raises an exception that causes the App to go to SplashScreenPage:
Unable to login through offline or online methods - logging out completely
.After doing so, the client tries to log-out, but due to the network error, it fails as well:
The OS that Immich Server is running on
TrueNAS Scale
Version of Immich Server
v1.106.4
Version of Immich Mobile App
v.106.4
Platform with the issue
The text was updated successfully, but these errors were encountered: