
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
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Origin error after changing default port...
Hi! I need some help regarding an issue I’m facing with Appwrite after changing the default ports. I have a self-hosted Appwrite instance running on my VPS. I ...
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
