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
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?
- Cannot use custom SMTP for messaging (SM...
Hey there! I'm on Appwrite Self-hosted 1.9.0. I've never used the messaging feature before, always sent emails through functions or a custom backend, but I'v...