-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Bug Report: Error Creating Document #7297
Comments
@Onunkwor, thanks for creating this issue! 🙏🏼
|
I have exactly same issue with him |
@Onunkwor, would you please share the details about your collection? It seems like |
@stnguyen90 I have a users collection and a following collection the following collection has a relationship with the users collection and I pass the id of the user into the collection. i fixed the user name attribute by the way thank you. my project id is 655222a9f32b9149584f. |
@stnguyen90 At first, I thought the error was from Appwrite. So, whenever I made any changes to the relationship or my code, I would delete the entire collection and start over. I've done that 10 times or more (I make a lot of mistakes 😂). Additionally, when creating the function to add a document to the collection, I initially passed userId and accountId instead of just user. This was because, at that time, I had only one attribute in my 'Following' collection, which is a relationship with my 'User' collection with the attribute key set to 'user'. |
@Onunkwor, I'm seeing multiple errors about incorrect attribute keys being passed to Appwrite. Please make sure you're passing the correct attribute key. Since there isn't anything wrong with Appwrite, I'm going to close this issue. If you need additional help, please join us on Discord and create a support post there. |
👟 Reproduction steps
When i try to create a document witnin my following collection I get the error shown below


The Function responsible for creating this document is
I ids are logged In the console so I'm sure they are getting to the function with
👍 Expected behavior
It should add a document to my collection
👎 Actual Behavior
nothing happens and I get the 500 (Internal Server Error)
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
Windows
🧱 Your Environment
app write version is 13.0.0,
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: