Closed AshAman999 closed 9 months ago
@AshAman999 The server is rather slow today anyway.
You're right, we should make the difference between server down, no internet and wrong user/pwd.
Fix needed in user_management_provider.dart
(Future<bool> login(User user) async {
).
Good catch 🙂
Could be extended to the other cases when the server is down (Exception: JSON expected, html found: <head><title>504 Gateway Time-out</title></head>
) or the connection is down.
cf. https://openfoodfacts.sentry.io/issues/4409784503/?notification_uuid=c6252a4b-36fc-4a57-bba7-b71fbe4cf870&project=5376745&referrer=weekly_report
What
Steps to reproduce the behavior
Expected behavior
The app should show proper message something like loading failed or similar
Why
Part of
Screenshot/Mockup/Before-After
Smartphone model
Additional context
Ps: I am trying to sign in with my email, I think that shouldn't be the problem. Probably some wording with error messages is the cause.
packages\smooth_app\lib\pages\user_management\forgot_password_page.dart