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
- login With OAuth Failed
login With OAuth Failed: when i cliick to login with any of the following (facebook, gmail or apple) am being redirected out of the app to enter my detail, afte...
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...