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
- Dotnet functions on cloud
I'm trying to deploy my .Net8 functions to my project on cloud.appwrite through the CLI. I'm getting this error.
- Query multi-tenant db with $permissions ...
I'm setting up a multi-tenant database with RLS enabled. My users my have permissions set for multiple Teams, and as such when they query the database with the ...
- All projects deleted
Hello, from the appwrite console last week I re-activated some of my old project and published them, yesterday I checked and none of the apps were working, now ...