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
- Error with realtime channels
I'm performing a subscription to realtime channels, and after a few seconds I get an exception with this error: {\"type\":\"error\",\"data\":{\"code\":1008,\"me...
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...