I am getting "AppwriteException: general_unknown, Server Error (500)" when using UpsertDocument on Appwrite Cloud from a function with Dart 3.5 runtime and dart_appwrite: 16.2.0. The error only occurs if a document with the same ID already exists. The function works correctly when creating a new document.
TL;DR
Developers are encountering a 500 Server Error when attempting to update an existing document using UpsertDocument in an Appwrite Cloud function with Dart 3.5 runtime and dart_appwrite: 16.2.0. The issue only arises when modifying an existing document with the same ID. To resolve this, try using a different method for updating documents or ensure that unique IDs are generated for each new document.