
I encountered a server error while creating a function in appwrite. Although the repository was successfully created, attempts to connect the function directly to the repository resulted in another server error. Consequently, I deleted everything, including the repository, and tried creating a new function. However, the same server error persisted.
The appwrite logs indicated a duplicate document error, even though I had deleted everything. This confused me, as there shouldn't be any documents with the previous IDs. Interestingly, using a different ID for the function creation was successful. This raises the question: why was there a duplicate document error when no documents matched the previous IDs?

appwrite | [Error] Line: 833
appwrite | [Error] Timestamp: 2024-04-01T03:15:55+00:00
appwrite | [Error] Method: POST
appwrite | [Error] URL: /v1/functions
appwrite | [Error] Type: Utopia\Database\Exception\Duplicate
appwrite | [Error] Message: Duplicated document: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '65c8e921c47f043fad0f' for key '_uid'
appwrite | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Adapter/MariaDB.php
appwrite | [Error] Line: 833
Recommended threads
- 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...
- custom requirements.txt file
How do I specify a custom requirements.txt file when creating a serverless function through the Appwrite console?
