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
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...