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
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- trying to figure out how to activate my...
please help
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...