tanutapi / dart_meteor

A Meteor DDP library for Dart/Flutter developers.
Other
37 stars 15 forks source link

meteor.logInStatus() got an error #63

Closed YouSour closed 1 year ago

YouSour commented 1 year ago

hi @tanutapi, on my backend when user A change password, all devices that user A logged in must be logout too, so i try meteor.logInStatus() to check it but i got an error below, any idea ? thank in advance.

Unhandled Exception: Invalid argument(s) (onError): The error handler of Future.catchError must return a value of the future's type

example code :

StreamBuilder<UserLogInStatus>(
        stream: meteor.logInStatus(),
        builder: (context, logInStatus) {
          print(logInStatus.data);
          print(logInStatus.data == UserLogInStatus.loggedIn);
          return const Login();
        },
      ),
YouSour commented 1 year ago

solved

tanutapi commented 1 year ago

Could you share your solution? Thank you.On 27 Jan 2023, at 15:27, Sour @.***> wrote: Closed #63 as completed.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

YouSour commented 1 year ago

@tanutapi just a temporary solution, uncheck uncaught exceptions on debug but the error still exist, don't know why i think u should check it.

Unhandled Exception: Invalid argument(s) (onError): The error handler of Future.catchError must return a value of the future's type