Back
[Sovled] appwrite sdk client is fine but when using node-appwrite query error
- 1
- Self Hosted
- Tools
- Web
- Databases
Suiii
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. Suiii
node-appwrite: 12.0.1
Suiii
appwrite: 1.5.3
Suiii
selfhosted
Suiii
cloud is also same
Suiii
[Sovled] npm install
Suiii
[Sovled] appwrite sdk client is fine but when using node-appwrite query error
Recommended threads
- Having issues with login via CLI
``` ~/appwrite î‚° appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...