
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
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
