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
- Issue in saving special character ' ╟ '...
I've created a chat application using Appwrite. However, when users try to save code that contains the character '╟', an internal server error occurs. Interesti...
- Auth issue: 401 general_unauthorized_sco...
Hello, I face a big problem with Appwrite Auth that I never face before. It's very simple, the most basic auth process just don't work ```dart final client = ...
- Need help on Flutter OAuth2
Am trying to use Appwrite OAuth (google, apple and facebook), am been on it for sometimes now which have tried many things but still not able to make it work: ...
