Back

Queries always giving 'server error' in v15

  • 0
  • Self Hosted
  • Databases
  • Web
Sikandar
4 Jun, 2024, 21:01

Greeting wonderful people <3,

I am using query equal and orderDesc, and evertime I am getting server error. I've already added indexes.

fyi: equal matches userID present in each document as an attribute

other posts suggesting assigning index to attributes which I have already done and no luck.

my code: const userID = user?.$id; const response = await db.events.list([Query.equal("userID", userID)]);

please see both picutres attached.

any help would be appreciated.

thank you

TL;DR
Developers are experiencing server errors while running queries in Appwrite v15. They have already added indexes and assigned indexes to attributes, but the issue persists. The code provided uses Query.equal to match the userID. Solution: Check the SDK version for compatibility with Appwrite v15.
Evdog
4 Jun, 2024, 21:04

What SDK version?

Sikandar
4 Jun, 2024, 21:07

@Evdog sorry is it different from appwrite version? as I have no idea, its my first project with appwrite is there a way to check?

Sikandar
4 Jun, 2024, 21:08

in cli by runing appwrite -v I got 5.05 in package.json appwrite ^15.0.0

Sikandar
4 Jun, 2024, 21:36

@Evdog this is what I could find by visiting /versions on my self-hosted site

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