Skip to content

firebase_auth: Unhandled exception in user.reload() if the user is disabled #26342

Closed
@kika

Description

@kika
'dart:async/future_impl.dart': Failed assertion: line 146: '<optimized out>': is not true.
#0      _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
#1      _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
#2      _FutureListener.handleError (dart:async/future_impl.dart:146:14)
#3      Future._propagateToListeners.handleError (dart:async/future_impl.dart:654:47)
#4      Future._propagateToListeners (dart:async/future_impl.dart:675:24)
#5      Future._completeError (dart:async/future_impl.dart:494:5)
#6      _SyncCompleter._completeError (dart:async/future_impl.dart:55:12)
#7      _Completer.completeError (dart:async/future_impl.dart:27:5)
#8      _AsyncAwaitCompleter.completeError (dart:async/runtime/libasync_patch.dart:40:18)
#9      FirebaseUser.reload (package:firebase_auth/firebase_auth.dart)
<asynchronous suspension>
#10     FireBackend._loadUser.<anonymous closure> (package:cuida/firebacke<…>
flutter: UserInfo change listener: null data
flutter: UserInfoRO change listener: null data

The title says it all. I call reload() on a user and everything works fine until I disable the user in the Firebase Authentication console. The next reload() call bombs out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolep: firebaseFirebase pluginsp: firebase_authThe Firebase Auth pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions