Rank 2: Process
I make an update request to a collection. It returns a 500 status code even though the data looks updated in Appwrite Cloud dashboard. My request is pretty straightforward and is fired off via the web client in React:
return db.updateDocument(config.databaseId, config.mediaCollectionId, mediaId, serializedFields);
I'm writing stringified JSON into a string field that is within range of my character limit.
The error message is cryptic and I don't know how to move forward to resolving it. This is a problem for me because I have an onSuccess block that manages some internal caching in my application. It's not firing because of the error even though the data looks good.
Request:
Request URL:
https://cloud.appwrite.io/v1/databases/63a9465bf069da4ee9ef/collections/64ef71bcbf5f618e9511/documents/64f2ec0d1dd6d46ec25b
Request Method:
PATCH
Status Code:
500
Remote Address:
157.230.79.70:443
Referrer Policy:
strict-origin-when-cross-origin
Response:
{
"message": "Server Error",
"code": 500,
"type": "general_unknown",
"version": "0.10.56"
}