
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
- What’s the current approach for always o...
Read that it’s not a thing out of the box, but what’s the possible setup here?
- Error 431 header fields too large
Some times to times when i load or switch the page, it shows an error 431. And on what i saw it'w because of the cookies, when i remove the legacy tokens it wo...
- Cannot add/update array field
How do I add or update the rows, How exactly to pass properties? (see provided image)
