Future<UserModel> getUserData(String uid) async { final document = await _userAPI.getUserData(uid); final updatedUser = UserModel.fromMap(document.data); return updatedUser; }
i am getting the following exception in the second line "Exception has occurred. AppwriteException (AppwriteException: document_not_found, Document with the requested ID could not be found. (404))"
seems document doesn't exits with given ID
is there any other way of getting current users uid
yap, if you account.get()
you will get users all the data including the ID
[SOLVED] getting exception
Recommended threads
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...