Hi, I am having an issue with my application after the appwrite cloud got updated; before it was working absolutely fine. Some of the queries are giving me this error
{
"message": "Invalid query method: equal",
"code": 400,
"type": "general_argument_invalid",
"version": "0.11.3"
}
Also, in the project console, a few indexes are showing failed. I suppose the problem might be with the indexing. So I deleted the index and tried recreating it, but that too won't work, and it throws an error: "Index length is longer than maximum: 768". I can't understand why this is happening because since I deployed the application, everything has been working flawlessly until the update. Please help me with it.
Hey @Pranay Goel Did you try to redeploy or reload or restart stuffs?
Would you please share your code with the query or the network request with the query?
Strings bigger than 768 can't be indexed.
Yeah sure
For further reference you can visit the website: https://spot-light-appwrite.vercel.app Steps to reproduce:
- Go to the Explore Page (/explore). You'll see a list of event cards.
- Click on any event card.
I think it's because you're passing an equal query for a getDocument() api call which isn't allowed
Okay. Actually this error didn't occur anytime before saturday. Is it because of the update?
Appwrite cloud upgrade happened on 9/22
Is there any alternative to equal in getDocument?
Why? What are you trying to do?
As I can see, you're trying to get the documents for the current logged user, you can achieve the same with permissions. Correct me if I'm wrong @Pranay Goel
Yes, it's fixed now. I removed the equals method. Actually, the same code has totally worked fine for the last three months so I wondered if it was due to the update. Thanks
Yeah, actually I didn't need explicit permissions for my use case, so didn't use that approach.
[SOLVED] Invalid Query Method: equal, error after Appwrite Cloud Update
Recommended threads
- Server API Key
Hi, I have a self-hosted Appwrite instance and I can’t quite figure out how to create a server-side API that lets me automate the creation of projects. The only...
- Invalid `region` param: Value must be on...
Hi! I'm trying to migrate a small project from the cloud to a self hosted instance to play around but without any success! I cannot initiate a migration witho...
- Locked out of account
Hey guys, I have a paid account and have been locked out. Apologies for using this method, but I'm getting no response via the contact us page. I had a old do...