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
- Failed to load data from database
My app broken, it throw AppwriteException exception. Few days ago it works well. AppwriteException: , ClientException with SocketException: Failed host lookup:...
- AI feature by functions?
I'm creating a website where, in short, users can index certain genealogical content. In connection with the development of AI, I was thinking about introducing...
- 500 Internal Error when Project is opene...
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl...