trashcoderOriginal post
Rank 1: Thread
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?
Summary
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.