
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
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
