Unhandled Exception: type 'String' is not a subtype of type 'Map<String, dynamic>'
- 2
- Flutter
- Accounts

Unhandled Exception: type 'String' is not a subtype of type 'Map<String, dynamic>' in account.dart file in appwrite
await account.createEmailSession(
email: email,
password: password,
);

i'm using appwrite flutter version 9.0.1

can you share your complete code

you can try this
final response = await account.createEmailSession( email: email, password: password, );
log(response.userId);

it is resolved, idk what happend i just deleted the code and restarted the laptop and again added the code. It worked normally! Thanks 🙂
Recommended threads
- "Memberships privacy" setting in 1.7.4
Hi everyone, I'm experiencing an issue with a clean self-hosted installation of Appwrite version 1.7.4. I previously used version 1.6.1, and if I remember corre...
- Function 404 error - Deployment with the...
I have a function in my Appwrite Cloud (free plan) project that cannot be accessed or deleted (404 in both UI and CLI). I'm stuck at the 5 functions limit and c...
- 1.6 to 1.7 does not work
Appwrite (self-hosted) stopped working after updating from 1.6.2 that was stable. Getting the general_server_error. Mentioning I fallowed all steps for upgrad...
