Skip to content

🚀 [firebase_auth] Add timeout case in exceptions thrown by createUserWithEmailAndPassword #18022

@Ortes

Description

@Ortes

I literally spent hours to understand where this firebase_auth/unknown came from. I finally findout that was my beforeUserCreated override that was too long and thus the call timed out.

Just adding this case in exceptions thrown would be nice to prevent anyone else to have this problem

: 🔴 [AUTH_SERVICE] ERROR in createUserWithEmailAndPassword: [firebase_auth/unknown] An internal error has occurred. [ Error code:47
: 🔴 [AUTH_SERVICE] Error type: FirebaseAuthException
: 🔴 [AUTH_SERVICE] Firebase Auth error code: unknown
: 🔴 [AUTH_SERVICE] Firebase Auth error message: An internal error has occurred. [ Error code:47
: 🔴 [AUTH_SERVICE] Stack trace: #0      FirebaseAuthHostApi.createUserWithEmailAndPassword (package:firebase_auth_platform_interface/src/pigeon/messages.pigeon.dart:1043:7)
: <asynchronous suspension>
: #1      MethodChannelFirebaseAuth.createUserWithEmailAndPassword (package:firebase_auth_platform_interface/src/method_channel/method_channel_firebase_auth.dart:270:22)
: <asynchronous suspension>
: #2      FirebaseAuth.createUserWithEmailAndPassword (package:firebase_auth/src/firebase_auth.dart:230:7)
: <asynchronous suspension>
: #3      AuthService.createUserWithEmailAndPassword (package:fullphysio/services/auth_service.dart:44:22)
: <asynchronous suspension>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions