Back

Document with the requested ID could not be found

  • 0
  • Databases
  • Messaging
  • Apple
  • React Native
  • Realtime
sushi
14 Feb, 2025, 09:57

I am encountering an issue when trying to fetch a document using the database.getDocument method in the React Native SDK. Specifically, I am attempting to retrieve a document with a specific documentId, but the following error is occurring:

The document with the requested ID could not be found.

Here is the code where I am calling the database.getDocument method: .database.getDocument(databaseId, collectionId, documentId, queries);

TL;DR
Issue: Error "The document with the requested ID could not be found" when fetching document using database.getDocument method in React Native SDK. Solution: Check the accuracy of the documentId being passed to the database.getDocument method.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more