Back

typescript version of the function is throwing

  • 0
  • Self Hosted
  • Functions
gaurav_ch
25 Apr, 2024, 14:51

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:

TypeScript
{"code":500,"type":"general_unknown","response":{"message":"Server Error","code":500,"type":"general_unknown","version":"1.4.14"}}

And docker logs show:

TypeScript
$ 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.

TL;DR
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.
Kenny
25 Apr, 2024, 14:53

What version of node-appwrite are you using?

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