gaurav_chOriginal post
Rank 2: Process
v1.4.14 self host, runctime is node v20.
I used node typescript starter and coded using classes and typescript.
Any query I am running gives an error:
{"code":500,"type":"general_unknown","response":{"message":"Server Error","code":500,"type":"general_unknown","version":"1.4.14"}}
And docker logs show:
$ docker logs appwrite
[Error] Timestamp: 2024-04-25T14:41:48+00:00
[Error] Method: GET
[Error] URL: /v1/databases/:databaseId/collections/:collectionId/documents
[Error] Type: Utopia\Database\Exception\Query
[Error] Message: Invalid query: {"method":"equal","attribute":"user_id","values":["zIyviTittP"]}
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Query.php
[Error] Line: 825
If I am running any query, I get the same result.
here is the sample code (attached).
I have not done any updates to the server. Any help is appreciated.
Summary
Developers are using a self-hosted version of node-appwrite v1.4.14 with TypeScript classes. Queries are failing and returning a 500 error. Docker logs indicate a Utopia\Database\Exception\Query with an invalid query. The issue persists despite no server updates.