
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one document is created and then getting error.
I am using appwrite cloud and next.js with typescript.
Error:
AppwriteException: Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.
callstack:
AppwriteException@http://localhost:3000/_next/static/chunks/node_modules_67e82ec7._.js:492:9
[project]/node_modules/appwrite/dist/esm/sdk.js [app-client] (ecmascript)/call/<@http://localhost:3000/_next/static/chunks/node_modules_67e82ec7._.js:923:23
fulfilled@http://localhost:3000/_next/static/chunks/node_modules_67e82ec7._.js:276:32
Please Help me out i am trying to solve this from last 2-3 days but there is not single solution for this.
Recommended threads
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Custom Domain Issue
i have added a custom domain about 21 hours ago, but till now there is no SSL certificate is active on it. but if i do DNS check via https://dnschecker.org/#C...
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
