-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_auth] native error messages not provided #1456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @heejongahn |
@iapicca Sure. Here it is. (The entire log is too big to fit in one comment, so I'll split into three comments) part 1
|
part 2
|
part 3
|
Thank you @heejongahn |
possible duplicate #124 |
same issue here
|
Looks like this is the same issue as #1223 but for the Auth plugin - we'll be looking at parsing native error messages & codes and bubbling these up to the Dart layer in a consistent cross-platform format. |
FirebaseAuth.signInAnonymously
throws without proper error message
my 2 cents |
For me this error was because I was signing my debug app with my personal signing details, however, APN certificate was uploaded to firebase created on a different (my client's) signing account. So I added the client's account to my xcode, set to sign the app with it, and now I'm not getting this error anymore. |
Hey 👋 Our rework of the For help migrating to the new plugins please see the new migration guide: https://firebase.flutter.dev/docs/migration |
Describe the bug
I tried to implement anonymous sign-in feature, such as:
and ended up with
await _auth.signInAnonymously();
throwing the error below. (note that it doesn't contain any useful error code, message etc.)After hours of debugging, I finally figured out that I haven't turned anonymous sign-in method on at Firebase console. Yes, it was a silly mistake but it would've been caught much much faster if the error message contained
ERROR_OPERATION_NOT_ALLOWED
, as documented.I believe this lack of information is not an intended behavior.
To Reproduce
I'm not sure it's method-specific situation or just an general issue. In my case, it was caused when I tried to call
signInAnonymously
with the related setting off.Expected behavior
Error message contains proper error code and message.
Additional context
flutter doctor -v
:pubspec.yaml
:The text was updated successfully, but these errors were encountered: