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
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- Team invite - 500 error - no email
When executing ```dart await _repository.teams.createMembership( teamId: event.listId, roles: ['member'], email: event.email, url: 'xxxx', ); ``` I se...
- Help with nameservers
I just added our domain, and as per instruction in the page following, it says, "Add the following nameservers on your DNS provider. ..." I want to keep my cu...