Hey all, i updated the node-sdk to 17.1.0 and tried the upsertDocument function added, but that gives me the error:
"name": "AppwriteException",
"code": 500,
"type": "general_unknown",
"response": "{\"message\":\"Server Error\",\"code\":500,\"type\":\"general_unknown\",\"version\":\"1.7.4\"}"
I checked if we needed to update the database as we are self hosting but 1.7.4 seems to be correct. Am i missing something?
Edit:
2025-07-16T12:17:29.538332908Z [Error] Timestamp: 2025-07-16T12:17:29+00:00
2025-07-16T12:17:29.538376777Z [Error] Method: PUT
2025-07-16T12:17:29.538384270Z [Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents/:documentId
2025-07-16T12:17:29.538390823Z [Error] Type: PDOException
2025-07-16T12:17:29.538396501Z [Error] Message: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
2025-07-16T12:17:29.538402408Z [Error] File: @swoole/library/core/Database/PDOStatementProxy.php
2025-07-16T12:17:29.538408120Z [Error] Line: 49
This is the error in the appwrite logs
Recommended threads
- Unable to Create Storage After Upgrading...
We upgraded our Appwrite instance from version 1.8.0 to 1.9.0 and successfully ran the migration process. However, after the upgrade, we are no longer able to c...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- SSL certificate generation failed even t...
Hello, I have an Appwrite Site for which I added a custom domain. However, even though the domain is verified, the SSL certificate generation is failing. It is ...