
My English is not very good, please forgive me
When I use this function "account.get()" and "account.create()", they both remind me like this: type "Null" is not a subtype of type "bool". But strangely enough, I did manage to create a new account.
Here is my sign code: // 注册方法 signUp(String userId, String email, String password, String name, Function onSuccess) { _account .create(userId: userId, email: email, password: password, name: name) .then((value) => onSuccess(value), onError: (error) { print("注册失败:${error}"); }); }
Here is my get code: Future<User> getUser(){ return _account.get(); }
// i use it in getx's init function Future<void> onInit() async { super.onInit(); appWriteManager.getUser().then((value) { print("user:${value}"); },onError: (error){ print("get user 出错:${error}"); }); }
this is error message: I/flutter ( 8300): get user 出错:type 'Null' is not a subtype of type 'bool' E/libEGL ( 8300): called unimplemented OpenGL ES API E/libEGL ( 8300): called unimplemented OpenGL ES API I/art ( 8300): Do partial code cache collection, code=17KB, data=31KB I/art ( 8300): After code cache collection, code=17KB, data=31KB I/art ( 8300): Increasing code cache capacity to 128KB E/libEGL ( 8300): called unimplemented OpenGL ES API I/flutter ( 8300): 注册失败:type 'Null' is not a subtype of type 'bool' I/flutter ( 8300): 注册失败:AppwriteException: user_already_exists, A user with the same id, email, or phone already exists in this project. (409)

Can anyone help me answer this question?

Need to create session before calling get() function.
(创建成功后,还需要按登录的流程去创建session,才能使用 get() )

My TypeScript code eg:

Double check your SDK version is compatible with your Appwrite version

use node_sdk v11.1.0

Thank you so much,I just changed my appwrite version to ^11.0.1, but why?

Thank you so much,I also modified this part of the logic

what version of Appwrite are you using (you can check at the bottom right of the Appwrite Console)?
Recommended threads
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Row with the requested ID already exists...
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subseq...
