flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

Provide better docs or a better tooling on how you can print when an internal error occurs

Open nilsreichardt opened this issue 3 years ago • 7 comments

Description

Sometimes you get errors like this:

[firebase_auth/internal-error] An internal error has occurred, print and inspect the error details for more information.

It would be helpful that the FlutterFire packages provide a more help on how to print the these details. Because the only I'm seeing is this error message. Like a link to the docs or a short explanation would be nice.

nilsreichardt avatar May 19 '22 09:05 nilsreichardt

@nilsreichardt Did you end up finding how to print any more details? I'm stuck in debugging an issue because I don't know where to look because of this.

MorelSerge avatar Jun 08 '22 18:06 MorelSerge

My issue was that the Firebase API had too strong restrictions

nilsreichardt avatar Jun 08 '22 18:06 nilsreichardt

@nilsreichardt Could you elaborate? How did you find this? My iOS application is failing to send a password reset email, other platforms work just fine.

MorelSerge avatar Jun 08 '22 19:06 MorelSerge

I found this because it was the only logical place it could fail like this. Then I checked it restrictions in Google Cloud and it was true.

nilsreichardt avatar Jun 08 '22 20:06 nilsreichardt

Hey @nilsreichardt - do you know what caused the error? If I can reproduce, there might be an underlying exception that we can parse and forward.

russellwheatley avatar Feb 23 '24 14:02 russellwheatley

image

I restricted the API key for Firebase and the restriction was too strong.

nilsreichardt avatar Feb 27 '24 10:02 nilsreichardt

@nilsreichardt If restrictions are the main cause of recreating this error, then one thing we can do to make the error more sensible for developers is instead of [firebase_auth/internal-error] An internal error has occurred, print and inspect the error details for more information. we can give an error message something like [firebase_auth/internal-error] An internal error has occurred. Current settings or permissions may restrict this action. Please check your settings and permissions in the Google Cloud console. For more details, <-URL of more explanation->. This can be a temporary solution for developers confused by this message and checking their code. An ideal error message would specify which setting is restricting the code. can we just do that for now?

whoisBugsbunny avatar Aug 01 '24 13:08 whoisBugsbunny