I'm trying to figure out how to create a new document by fetching data from 3 text fields, I get this error: io.appwrite.exceptions.AppwriteException: Param "documentId" is not optional. when I try to fetch the existing data from the document, I get this: io.appwrite.exceptions.AppwriteException: Not Found Please let me know if I'm unclear with my question.
Here's my code:
You're not passing the right parameters. Mouse over createDocument() to see what the parameters are. Or you can look at the docs.
Also, I don't think you need to call toString() on the data.
But it requires String for all the databaseId, collectionId, and documentId. I replace data.toString() with random value assuming that it's the documentId for the new entry
Oh I got it now, adding "unique()" as documentId and removing null fixed my issue
How do I resolve this!? io.appwrite.exceptions.AppwriteException: The current user is not authorized to perform the requested action.
Got it!! add access to anyone in the database settings it'll work.
[SOLVED] Unable to fetch/create Documents
Recommended threads
- Roles Enum Limitation in Kotlin SDK
The createMembership method in the Appwrite Kotlin SDK now requires List<io.appwrite.enums.Roles> instead of List<String>, but the predefined Roles enum only co...
- Server Down
Appwrite services are down. When will they start working again?
- Use Limits
I need urgent help, i use appwrite as a chat function for my website and my mobile android application, but recently, for the past 3 months, my database reaches...