Back

databases.listDocuments fails when Query.limit above 1000. Fetch type error: terminated

  • 0
  • Self Hosted
  • Functions
  • Databases
  • Web
Orion
22 Jan, 2025, 23:56

Hi,

databases.listDocuments fails when Query.limit above 1000. Fetch type error: terminated when run inside a function, but seems to work with lower limits, e.g., 200. Its very odd behaviour and I can't see any logs that talk about why this might be happening.

Has anyone experienced this?

TL;DR
Issue: Error message "Fetch type error: terminated" occurs when developers use databases.listDocuments with Query.limit set above 1000, but works with lower limits like 200. No logs indicate the reason for this behavior. Solution: This issue seems to be related to the limit set on Query.limit. Try optimizing the query or breaking down the data retrieval to work within the 1000 limit to avoid the error.
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