
earlier i was using 1.4.x, when i updated the dependecies to 1.5.x, it gave me this error:
[Log] Error in appwriteGetHomeListData => AppwriteException: general_query_invalid, Invalid query: {"method":"equal","attribute":"userId","values":["65a582ccabd37ea03d4e"]} (400) (main.dart.js, line 34466)

okay thanks for the help

there's some confusion here maybe. what was 1.4.x and how did you update it to 1.5.x? You cannot update the Appwrite Cloud instance.

i updated the dependecy

your Client
endpoint is https://cloud.appwrite.io/v1
, right?

no it's a custom endpoint

what version of appwrite is it running then?

12.0.1 or 1.5.x

appwrite version shown in the console at the footer. 1.5.4
?

12.0.1
is the SDK.

okay understood

then it must be the SDK

on the cloud it's 1.4.13

but i tried on self-hosted which is on 1.5.4

getting error: [Log] Error in appwriteGetHomeListData => AppwriteException: , ClientException: XMLHttpRequest error., uri=http://localhost/v1/databases/65d893aeb9f8651819e4/collections/65d9e063f1f3a282d0b9/documents?queries%5B%5D=%7B%22method%22%3A%22equal%22%2C%22attribute%22%3A%22userId%22%2C%22values%22%3A%5B%2265a582ccabd37ea03d4e%22%5D%7D# (0) (main.dart.js, line 34466)

gotcha. seems like you are connecting to multiple instances, maybe testing?
so while Cloud is still on 1.4.13
, you need to use the 11.x
version.
On localhost, where the version is 1.5.4
, use 12.x
version of the sdk.

okay understood the mistake i was doing

now i have switched to localhost

getting this error

make sure to clear pub cache, reinstall the correct sdk.

okay will do that

Thanks for the help, really appreciate it will let you know if something else comes up.

no worries. please mark this thread as [SOLVED] once your issue resolves.
Feel free to ping here otherwise create a new thread if you face any other issues!
Happy Appwriting :appwritecheers:.

Sure Thanks

[SOLVED] Invalid Query Error in 12.0.1
Recommended threads
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
