#Getting error AppwriteException: Server Error while using query

1 messages · Page 1 of 1 (latest)

cosmic brook
#

try {
const userAccount = await database.listDocuments(
process.env.HMSDB,
process.env.HMSCOLLECTION,
[Query.equal('userId', id)]
);
return userAccount;
} catch (error) {
console.log('error', error);
throw error;
}
i am getting "error AppwriteException: Server Error" when i tried to use query. I also created the index with name userId, please some help me.

remote osprey
cosmic brook
#

i am using "appwrite": "^14.0.0",

remote osprey
cosmic brook
#

i am using nextjs with appwrite.
i can't see anywhere sdk version.

cosmic brook
#

its 14.0.0