Back

Generic Error on database.listDocuments(). Query is fine.

  • 0
  • Flutter
Tod
28 Jun, 2024, 00:48

I have a document listing request from Flutter that usually works if the date interval I'm using for querying is bigger than 2 days. But if it's just 2 days or a single day interval, Appwrite returns me a Generic Error. I'm attempting to log it to the container but I don't know which container is responsible for it...

Here's the query params: final List<String> equipmentQuery = [ Query.equal("id", orderListIDs), Query.greaterThanEqual( "creation_date", dateToBeginTimestamp(initDate), ), Query.lessThanEqual( "creation_date", dateToBeginTimestamp(finalDate), ), ];

Thank you

TL;DR
Issue: When querying with date intervals of 2 days or less, developers experience a Generic Error from Appwrite. Solution: The error likely stems from the handling of date intervals. Double-check the dateToBeginTimestamp function for potential bugs related to shorter intervals. Also, ensure that the containers logging the error are identified for effective troubleshooting.
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