Back

getDocument no output, no error

  • 0
  • Databases
  • Flutter
  • Functions
trashcoder
13 Mar, 2024, 07:50

I call getDocument from a function, but i get no result, neither it runs into an exception: try { Databases databases = Databases(client); Document docRef = await databases.getDocument( databaseId: Constants.APPWRITE_DATABASE, collectionId: Constants.APPWRITE_COLLECTION_EVENTS, documentId: eventController.getEventId()); context.log("SaveFile: getDocument successfully sent and returned"); } catch (error) { context.log("Error when checking Validity"); context.error(error); }

What's wrong with my code?

TL;DR
Developers using Appwrite Server 1.4.13 and dart-appwrite 10.1.0 are facing an issue where the getDocument function does not output any result or error. In the provided code snippet, the function is called correctly, but no exceptions are generated. This issue could potentially be related to the way the getDocument function is being called or the parameters being passed. It is recommended to double-check the function parameters and ensure they are correct.
trashcoder
13 Mar, 2024, 07:51

I'm using Appwrite Server 1.4.13 and dart-appwrite 10.1.0

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