Hello, What are the probable causes for this exception when I run the getCurrentUser:
Future<User> getCurrentUser() async =>
Account(_client).get().then((value) => value);```
Exception```Unhandled Exception: type 'Null' is not a subtype of type 'List<dynamic>'```
#0 new User.fromMap (package:appwrite/src/models/user.dart:87:18)
#1 Account.get (package:appwrite/services/account.dart:23:24)
<asynchronous suspension>```
What version of Appwrite are you on and what version of the Appwrite flutter sdk are you using?
Hello Steve,
appwrite: ^11.0.0 => flutter Appwrite console version 1.3.7
Version 11 of the Appwrite flutter sdk is meant for Appwrite 1.4. Please downgrade, checking the readme to see what version you should use
I just downgraded the flutter plugin to 9.0.0 and it worked! That's the workaround I guess?
Perfect. Thank you!
[SOLVED] Exception when retrieving current user
Recommended threads
- Current User is Not authorized
recreating same Thread
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...