
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
- Google OAuth2 Login Gets Stuck in Redire...
I'm facing an issue with the Google OAuth2 login flow on my Flutter Android app using the Appwrite SDK. After a successful sign-in with Google, the browser ente...
- Facebook OAuth with Appwrite Cloud fails...
Iβm integrating Facebook login in my Flutter app using Appwrite Cloud. Google OAuth works fine, but Iβm stuck with Facebook. Hereβs what happens: When I log i...
- Issues connecting my appwrite 1.7.4
Im trying to connect my app using the app-starter but all the pings are getting an error 500, Ive tried with windows / android and web all give the same 500 err...
