#[SOLVED] 500 Server error While using Query

16 messages · Page 1 of 1 (latest)

neon sapphire
#

I am getting 500 server error while using listDocuments Api with Query, when I dont use Query it works fine.
I have tried with different query options for all options it gives the same error.
Here is my code :-

This is my appwrite version
"appwrite": "^13.0.2",

mental breach
#

Can you show full implementation?
Whats the permissions?
I tried using the client SDK and it seems to work.

neon sapphire
#

I have given all permissions to Any Role for that collection

#

Can you please clarify , what you are expecting when you are asking about full implementation? the above line of code is calling the api and that is failing with 500 error.

mental breach
#

I meant if you could share the Client variable? Did you add Project to it?

neon sapphire
#

do you want me to share here ? or should I dm you ?

mental breach
#

anything works. Just need to see if the endpoint and the project is is correctly set to the Client.

neon sapphire
#

api request without query is working fine

#

However, I will dm you the client details

fiery parcel
#

shan, there's too many people getting 500 errors using queries lol

mental breach
fiery parcel
mental breach
#

Seems like an incident to me. I can get results from OPs db with Query.

fiery parcel
#

hmm.. weird

neon sapphire
#

Previously I had installed "appwrite": "^14.0.0-rc.5" rc version of appwrite , which got installed by default. Later I downgraded to 13.0.2 , but it was still not working. After darShan told its working for him , I deleted my node modules and cleared the npm cache and reinstalled version 13. Then it started working. Thanks

mental breach
#

Please mark the question as [SOLVED] if your issue is fixed.