Back

Appwrite deploy function --- > Error Server Error

  • 0
  • Self Hosted
  • Functions
  • Tools
Shiba
13 Mar, 2024, 03:52
TypeScript

appwrite  | [Error] Method: GET
appwrite  | [Error] URL: /v1/functions/:functionId
appwrite  | [Error] Type: Appwrite\Extend\Exception
appwrite  | [Error] Message: Function with the requested ID could not be found.
appwrite  | [Error] File: /usr/src/code/app/controllers/api/functions.php
appwrite  | [Error] Line: 461
appwrite  | [Error] Timestamp: 2024-03-13T03:41:32+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 '65f11c64d39f778a62fb' for key '_uid'
appwrite  | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Adapter/MariaDB.php
appwrite  | [Error] Line: 833

on latest cli and Appwrite.

TL;DR
Developers are encountering a server error when trying to deploy a function on the latest Appwrite version. The error messages show a function ID not being found and a duplicated document entry issue. Check the function ID and ensure no duplicates are being created to resolve the problem.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more