Rank 1: Thread
I get a socket exception err when I call the listDocuments() method.
Here's the code I use in Flutter to query:
Future<List<Document>> getNotes() async {
DocumentList allNotes = await appwriteDatabase.listDocuments(
databaseId: dojoDatabaseId,
collectionId: noteCollectionId,
queries: [
Query.select([
'subject',
'description',
'date',
'id',
//Permission is tijdelijk vanwege een bug in de SDK
'\$permissions'
]),
Query.orderDesc('date'),
],
);
return allNotes.documents;
}```
Strangely enough when I turn off catch all exceptions in VS code; It ignores the exception. When I press a button which calls the method a second time it works 🫣 . Any ideas?
I tried the solution mentioned here: https://discord.com/channels/564160730845151244/1166669095639466074