AnshOriginal post
Rank 2: Process
Future 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))"
Summary
The user is encountering an exception while trying to retrieve data with the given ID. The exception message is "Document with the requested ID could not be found." The issue has been resolved.
Solution: Check if the document exists with the given ID. Make sure the ID is correct and corresponds to an existing document.