dikshatiwariOriginal post
Web Developer
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.
Summary
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.