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
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- Compatibility issue with Kakao OpenID Co...
**Context:** I am attempting to integrate **Kakao Login** (one of the largest social login providers in South Korea) into my Flutter application using Appwrite'...