Back

Could not fetch documents AppwriteException: Invalid query: {"method":"limit","values":[150]}

  • 0
  • Databases
  • Cloud
Sonicviz
15 Mar, 2024, 04:27

Hi, Just upgraded my prototype to V1.5 . I'm using AW Cloud and getting an issue with Query on the cloud using listDocuments. Previously in my listDocuments I had [Query.limit(150)] but now that's giving me an error in the console: Could not fetch documents AppwriteException: Invalid query: {"method":"limit","values":[150]} at Client.eval (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:448:27) at Generator.next (<anonymous>) at fulfilled (webpack-internal:///./node_modules/appwrite/dist/esm/sdk.js:51:58)

If I comment out the Query.limit I get the default 25 results returned ok. I upgraded all the packages, and there's nothing in the release notes about Query changes I can see. (Updated the couple of session/password breaking changes aok) Did I miss something?

TL;DR
Developers discussed the upcoming release of Appwrite 1.5 to Cloud. User experiences issues with image preview on SH. Cloud currently remains on version 1.4.13. An error with Query Limit 150 was encountered after upgrading to Appwrite 1.5 on AW Cloud. Solution: Remove or comment out Query.limit(150) and the default 25 results will be returned. No Query changes were found in the release notes.
Sonicviz
15 Mar, 2024, 04:28

"appwrite": "^14.0.0",

Sonicviz
15 Mar, 2024, 04:30

Maybe I should try a node modules delete and a NPM Install, instead of npm update? The update worked ok though, as I changed the //V1.5 createEmailSession renamed to createEmailPasswordSession aok

darShan
15 Mar, 2024, 04:31

nit: you tagged cloud, so Cloud isnt on 1.5x atm.

Sonicviz
15 Mar, 2024, 04:31

huh? I though it was all updated?

Steven
15 Mar, 2024, 04:31

The top most post when you created this was the same problem 😑

darShan
15 Mar, 2024, 04:32

Naah, Cloud's still on 1.4.13.

Sonicviz
15 Mar, 2024, 04:32

So wait, when is the cloud being updated to 1.5. It's a little confusing

darShan
15 Mar, 2024, 04:32

sometime later when it's considered stable for public use.

Sonicviz
15 Mar, 2024, 04:33

Isn't that what the beta was for?

darShan
15 Mar, 2024, 04:33

you can do 1.5x on self hosted.

darShan
15 Mar, 2024, 04:33
Sonicviz
15 Mar, 2024, 04:33

I already updated my SH, but using both for testing

Sonicviz
15 Mar, 2024, 04:34

I just ASSumed Cloud was logically going to 1.5 as well

darShan
15 Mar, 2024, 04:34

not yet.

Sonicviz
15 Mar, 2024, 04:34

That's not optimal if you're using both

Steven
15 Mar, 2024, 04:34

You can see the version at the bottom right of the Console

Sonicviz
15 Mar, 2024, 04:34

Do you have a timeline?

Sonicviz
15 Mar, 2024, 04:34

ah, Version 1.4.13

Sonicviz
15 Mar, 2024, 04:35

my bad. Bummer

Sonicviz
15 Mar, 2024, 04:35

That's unfortunate. I prefer using cloud tbh, unless I need to frig with auth due to rate limits

Sonicviz
15 Mar, 2024, 04:36

SH has some issues with image preview I haven't had resolved

Sonicviz
15 Mar, 2024, 04:47

Missed this in the announcement: In the coming weeks, we will release Appwrite 1.5 to Cloud. Stay tuned! 🌩️ Please mark resolved. ty

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more