Back

password

  • 0
  • Flutter
sg
30 Apr, 2024, 15:12

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?

TL;DR
Developers need to switch to a compatible version of Appwrite SDK (11.0.1) instead of using 12.x for Appwrite 1.4. The error AppwriteException: general_unknown (500) may be due to incompatible versions.
Kenny
30 Apr, 2024, 15:14

What queries are you trying to do? What version of the sdk?

sg
30 Apr, 2024, 15:16

final result = await databases.listDocuments( databaseId: '', collectionId: '', queries: [Query.contains('StaffName', "ganesh")], );

Kenny
30 Apr, 2024, 15:27

What sdk version? Are you self hosted or cloud?

sg
30 Apr, 2024, 15:28

seld hosted 1.4

Kenny
30 Apr, 2024, 15:29

What version of the flutter sdk?

sg
30 Apr, 2024, 15:29

v3.86.0

Kenny
30 Apr, 2024, 15:31

I guess I should be more specific. What version of the appwrite package are you using?

Kenny
30 Apr, 2024, 15:31

You should be using 11.0.1

sg
30 Apr, 2024, 15:33

sorry abt that it is 12.0.2

Kenny
30 Apr, 2024, 15:34

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.

sg
30 Apr, 2024, 15:36

ok thanx for pointing that .will move back to a compatible version and check . thanq . will get back with the result .

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more