Hello I am facing the isssue that current user is not authorized in create Document
code async createPost({ title, content, image, status, userId }) { try { return await this.database.createDocument( conf.appwriteDatabaseId, conf.appwriteCollectionId, ID.unique(), { title, content, image, status, userId } ); } catch (error) { console.log("Appwrite Error ::: createPost error:::", error); } }
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
what are the permissions on the collection?
Thank you my issue is now resolve i don't give any permission in collection Thank you i am excited to deploy my first application on appwrite <:react:637383195503099915>
[Solved] Create Document Error
Recommended threads
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- 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...