error occurs intermittently when attempting to query appwrite for data EROR : AppwriteException
- 1
- Databases
- Web
- Cloud
This error occurs intermittently when attempting to query appwrite for data in nextjs server component Error: AppwriteException: request to https://cloud.appwrite.io/v1/databases/SECRET/collections/SECRET/documents?queries%5BB0%5D=equal("is_published"%2C+%5Btrue%5D)&queries%5B1%5D=select(%5B"title"%2C"summary"%2C"%24id"%2C"featured_image"%5D) failed, reason: socket connection timeout.
This is the query: const articles = (await appwriteDatabaseService.queryPackges({ collectionId: config.appwriteBlogCollectionId, filters: [ Query.equal("is_published", true), Query.select(["title", "summary", "$id", "featured_image"]), ], })))
What's your appwrite SDK version?
^13.0.1
I tried upgrading it to 14 , issue remain same
AppwriteException: Server Error at AppwriteDatabaseService.queryPackges (webpack-internal:///(rsc)/./app/appwrite/databaseConfig.ts:47:19)
This is a real problem. The function works when you remove queries but when you add queries. its a problem
yes
its occuring because of queries , I removed the query and it worked
at Client.eval (webpack-internal:///(rsc)/./node_modules/appwrite/dist/esm/sdk.js:448:27)
at Generator.next (<anonymous>)
at fulfilled (webpack-internal:///(rsc)/./node_modules/appwrite/dist/esm/sdk.js:54:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 500,
type: 'general_unknown',
response: {
message: 'Server Error',
code: 500,
type: 'general_unknown',
version: '0.12.113'
}
}```
Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting
okay lets be patient. does downgrading help?
Maybe. Not sure
Any update on this ? Am i doing anything wrong or is it a real problem ?
What's your project id?
I have same problem 😦
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 ...