It is a simple cast error in session.dart file, below is the logs:
E/flutter ( 6054): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>' in type cast E/flutter ( 6054): #0 new Session.fromMap (package:appwrite/src/models/session.dart:152:39) E/flutter ( 6054): #1 Account.createEmailPasswordSession (package:appwrite/services/account.dart:646:27) E/flutter ( 6054): <asynchronous suspension> E/flutter ( 6054): #2 _LoginScreenState.login (package:e_commerce_flutter/src/view/screen/auth/login_screen.dart:25:5) E/flutter ( 6054): <asynchronous suspension> E/flutter ( 6054): D/DecorView: onWindowFocusChanged hasWindowFocus false
This is from the flutter's appwrite package : 13.1.0, but i initially tried 13.1.1 and it also resulted in the same error!
Works! Thanks!
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Getting current user has been blocked
Getting current user has been blocked error while signing in the appwrite console. Got this during I am testing with the my saas web project. Please help to unb...