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
- Appwrite Function getting general_unauth...
Hi everyone, I'm trying to create a database schema using an Appwrite Function written in Dart from Appwrite console, but I'm getting an authorization error wh...
- Help with nameservers
I just added our domain, and as per instruction in the page following, it says, "Add the following nameservers on your DNS provider. ..." I want to keep my cu...
- Problem with Appwrite CLI: Removing data...
I'm having an issue with the CLI while trying to manage multiple databases within a single project. My goal is to simplify my local environment by only includin...