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?
I'm using Appwrite Server 1.4.13 and dart-appwrite 10.1.0
Recommended threads
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this
- AppwriteException: Invalid query: Query ...
```js console.log(typeof interaction.user.id) console.log(interaction.user.id) const user_check = await TablesDB.listRows({ databaseId: "db", ...