
Up until a couple minutes ago the function on my code worked correctly but now my project breaks while trying to fetch the data. I can see the data on appwrite site but I'm unable to fetch it from my project
this is the error that I get An error occurred while retrieving the recent appointments: AppwriteException [Error]: fetch failed at Client.call (webpack-internal:///(rsc)/./node_modules/node-appwrite/lib/client.js:195:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Databases.listDocuments (webpack-internal:///(rsc)/./node_modules/node-appwrite/lib/services/databases.js:1658:16) at async $$ACTION_1 (webpack-internal:///(rsc)/./lib/actions/appointment.actions.ts:46:30) at async AdminPage (webpack-internal:///(rsc)/./app/admin/page.tsx:24:26) { code: undefined, type: undefined, response: undefined }
this is the code const appointments = await databases.listDocuments( DATABASE_ID!, APPOINTMENT_COLLECTION_ID!, [Query.orderDesc('$createdAt')] ); console.log('after bd call');
what am i missing? could somebody help me please? *DATABASE_ID and APPOINTMENT_COLLECTION_ID are correct

Are you using Appwrite cloud?
Recommended threads
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
- How can we add more than 8 attributes in...
Hey, when I tried to add attribute in my collection it showed me this Error "The maximum number or size of attributes for this collection has been reached." How...
- implement caching
It it possible to cache response for few minutes? I dont want to create function or implement a whole reverse server just to cache it in somewhere ?
