#[SOLVED] getting exception

1 messages · Page 1 of 1 (latest)

analog mesa
#

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))"

mint heron
analog mesa
#

is there any other way of getting current users uid

mint heron
#

you will get users all the data including the ID