
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
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
