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
Create a working google oauth flutter configuration using SignInScreen
Sign out.
Disable DNS (or disconnect from the internet) in some way.
Try to Sign in with Google.
It displays "An unknown error occurred"
Expected Behavior
I would expect this fairly common scenario to have a defined error message.
"Failed to connect to Google"
"Failed to connect to Google. Failed to resolve hostname"
"Failed to connect to Google. Invalid Certificate" etc etc
or at least some way to customize this error?
short of that even displaying the unlocalized exception message would be better than nothing as at least it gives the user some hint or information at which we can help them.
Users often lose connection, or are behind a captive portal, or have issues with SSL connection due to inspection, or other such scenarios that prevent a secure connection to the google servers.
Actual Behavior
It displays "An unknown error occurred"
Additional Information
Also I tried:
ErrorText.localizeError = (BuildContext context, FirebaseAuthException e) {
debugPrint("XXXXXX: $e");
switch (e.code) {
case 'user-not-found':
return 'Please create an account first.';
case 'credential-already-in-use':
return 'This email is already in use.';
default:
return 'Oh no! Something went wrong.';
}
};
based on a36884d
but it appears that localizeError is never called. Maybe I am using it wrong?
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
Android
List of dependencies used.
flutter pub deps -s list
dev dependencies:
transitive dependencies:
Steps to reproduce
It displays "An unknown error occurred"
Expected Behavior
I would expect this fairly common scenario to have a defined error message.
"Failed to connect to Google"
"Failed to connect to Google. Failed to resolve hostname"
"Failed to connect to Google. Invalid Certificate" etc etc
or at least some way to customize this error?
short of that even displaying the unlocalized exception message would be better than nothing as at least it gives the user some hint or information at which we can help them.
Users often lose connection, or are behind a captive portal, or have issues with SSL connection due to inspection, or other such scenarios that prevent a secure connection to the google servers.
Actual Behavior
It displays "An unknown error occurred"
Additional Information
Also I tried:
based on a36884d
but it appears that localizeError is never called. Maybe I am using it wrong?
The text was updated successfully, but these errors were encountered: