I keep getting this error when creating a document.
AppwriteException [Error]: Attribute with the requested ID already exists. Try again with a different ID or use "unique()" to generate a unique ID.
This is the line of code that is breaking ``` const data = { Email: Email, accountId: accountId, collectionId: collection.$id, };
let dataLink = await databases.createDocument( "64502243369b884d71f8", "647295a5228d3bd685da", ID.unique(), data );``` Here is the imports
import { PUBLIC_API_ENDPOINT, PUBLIC_PROJECT_ID } from "$env/static/public";
import { PRIVATE_API_KEY } from "$env/static/private";```
Recommended threads
- 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...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...