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
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- 401 - Project not accessible in this reg...
Hi Appwrite team, I’m experiencing a Cloud Console issue with my NYC region project. Problem: - Some Console pages return: “401 - Project is not accessible ...