Hello, I have a function that allows logined-in user add items to cart, on add-to-cart click I want the Items to be submitted to the database collection I created. Ihis errors keeps coming up when I clicked on add-to-cart button.
Snip Error from the console: Add-To-Cart funtion: Function that create userItems in my Collection:
const promise = databases.createDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]', [DATA]);
Your create document function should be formatted like above. You're missing a parameter.
https://appwrite.io/docs/references/cloud/client-web/databases#createDocument
From the createUserItems function it shows I declared all the four params
This is what i was looking at
Since to me, this seems to be the function that is throwing the error for no data.
Thank you Kenny error resolved. I noticed I was not passing databaseId, documentId to my try block.
[SOLVED] Unable to submit the cartItems to my Database collection.
Recommended threads
- Function connected custom domain error: ...
My domain is served through Cloudflare. Domain is now connected with the appwrite function. But when accessing the domain, I get the below error. Any suggestion...
- Error | general_unknown
I have built a website using Appwrite Cloud as backend, and also using sites for deployment. My website is live but sometimes it shows Appwrite's Error general_...
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...