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?
final result = await databases.listDocuments( databaseId: '', collectionId: '', queries: [Query.contains('StaffName', "ganesh")], );
What sdk version? Are you self hosted or cloud?
seld hosted 1.4
What version of the flutter sdk?
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
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.
ok thanx for pointing that .will move back to a compatible version and check . thanq . will get back with the result .
Recommended threads
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...