
I get the error "Could not get documents from database" after some requests, when trying to query some documents with order and by cursor. Does anyone else experience this?

What's the code or queries?

Looks like this
response = await database.listDocuments(
databaseId: Database.databaseId,
collectionId: Database.notesCollectionId,
queries: [
Query.limit(pageSize),
if (lastDocumentId != null) Query.cursorAfter(lastDocumentId!),
Query.orderDesc('tier'),
Query.orderAsc('index'),
],
);

I have two attributes I use to sort on. Tier is string (S,A,B,C,D), and index is a number

and can you share the full error?

Hi @Drake I was a long time away, I am sorry not having read and answered. It is a general_unknown
error. This is all I can see:


Are you sure the last doc ID is correct and pagesize?
Recommended threads
- [SOLVED] Access ExecutionStatus of a fun...
I am calling a cloud function from the newest Flutter SDK 20.2.1with the `xasync: false` flag and get the result, but the `execution.status` is not a String and...
- Appwrite isn't accepting the api from se...
Error creating user: AppwriteException: Server Error type: 'general_unknown', response: '{"message":"Server Error","code":500,"type":"general_unknown","versi...
- Subject: Request for temporary quota lif...
Hi Appwrite Team, our nonprofit animal rescue app on Appwrite Cloud is currently throttled due to read‑quota limits, and we need a temporary increase so rescue ...
