I am trying to create a blog application using react as frontend and appwrite as backend service. I can add or create one post but when i try to add second post i got error
- appwrite.js?v=ccfb24fa:850 Uncaught (in promise) AppwriteException: Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID. at Client. I have tried using ID.unique() but got the same error. Can anyone please help me solve this issue.
TL;DR
Developers are passing slug as ID, causing the error "Document with the requested ID already exists." Suggestion to post a picture of the document in the Appwrite console. Further info needed: Appwrite version and SDK version. The error can be resolved by generating a unique ID using ID.unique() or manually ensuring unique IDs when creating posts in the blog application.Can you share the appwrite version and sdk version?
im new here but looks like youre passing slug as id, maybe for others can you post picture of the document in appwrite cosole aswell
Recommended threads
- Middleware
how to make middleware in nextjs appwrite with client side auth?
- Error 400: redirect_uri_mismatch
Hi team, Google OAuth was working fine with our Appwrite Cloud setup until yesterday. We did not change any configuration in Appwrite, Google Cloud, or our cod...
- Bulk delete failed with 401
- I created a transaction to bulk delete rows in a table has `done` equal `true` follow documentation. But when run, it returns 401 unauthorized error as screen...