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
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- My organization's project is blocked
My organization's project is blocked so unblocked my organization then I will this
- Can't Create An Account with Gmail Domai...
Hi, when using account.create() to register a new user with the Gmail domain, I got "There was an error processing your request. Please check the inputs and try...