Back
[Sovled] appwrite sdk client is fine but when using node-appwrite query error
- 1
- Self Hosted
- Tools
- Web
- Databases
TypeScript
queries.push(Query.limit(params.pageSize!));
queries.push(
Query.offset(getOffsetSize(params.pageNumber!, params.pageSize!))
);
error log
TypeScript
2024-05-28T12:04:35.101786738Z [Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
2024-05-28T12:04:35.101789696Z [Error] Line: 574
2024-05-28T12:04:44.143455182Z [Error] Type: Utopia\Exception
2024-05-28T12:04:44.146939930Z [Error] Message: Error handler had an error: Invalid query: {"method":"limit","values":["8"]}
TL;DR
Developers were encountering a query error when using node-appwrite despite having a fine appwrite SDK client. The issue was resolved by ensuring the npm install and cloud configurations were correct, with appwrite version 1.5.3 and node-appwrite version 12.0.1. The error log indicated an "Invalid query" problem related to the limit method, which was fixed by adjusting the query parameters.node-appwrite: 12.0.1
appwrite: 1.5.3
selfhosted
cloud is also same
[Sovled] npm install
[Sovled] appwrite sdk client is fine but when using node-appwrite query error
Recommended threads
- Error connecting Github
I have followed the documentation online for setting up VCS and cannot get my Github to properly connect in Functions. When I press the "Connect to Github" I am...
- delete cancelled site deployment
I would like to remove a cancelled site deployment, but the site menu shows only "Redeploy".
- Couldnt not do appwrite push tables
Not sure why i am not able to create my tables