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 getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
- Unable to View / Edit Bucket Files
Hi! I am unable to view / edit Bucket Files. While Previews work just fine, clicking the actual file to view or edit it produces the errors seen in the attache...
- How to remove the Sign up link after cre...
Greetings, i just installed appwrite on a VPS and created an account but now i do not want others to have access to the sign-up page. Is there any way to hide o...
