Web Developer
trying to query a from list documents appwrite Flutter and getting an eroor AppwriteException: general_unknown, Server Error (500).
if i remove the query , the await document list works fine . Any Suggestions?
Votes
0
Replies
12
Participants
Unknown
Messages
13
Web Developer
trying to query a from list documents appwrite Flutter and getting an eroor AppwriteException: general_unknown, Server Error (500).
if i remove the query , the await document list works fine . Any Suggestions?
What queries are you trying to do? What version of the sdk?
Web Developer
final result = await databases.listDocuments(
databaseId: '',
collectionId: '',
queries: [Query.contains('StaffName', "ganesh")],
);
What sdk version? Are you self hosted or cloud?
Web Developer
seld hosted 1.4
What version of the flutter sdk?
Web Developer
v3.86.0
I guess I should be more specific. What version of the appwrite package are you using?
You should be using 11.0.1
Web Developer
sorry abt that it is 12.0.2
If you look at the top of the readme for the appwrite sdk it'll say what version of Appwrite it's compatible with. 12.x is for Appwrite 1.5, you'll need something compatible with 1.4, so 11.x would be what you need.
Web Developer
ok thanx for pointing that .will move back to a compatible version and check . thanq . will get back with the result .