Hi Appwrite team, I have a database with 4+ million documents, but every query using search/contains still throws this error (sometimes it works). My attributes had been indexed.
I use Kotlin + SpringBoot, and set up the OkHttp timeout to 60 seconds
TL;DR
Database is timing out due to large number of documents. Adjust queries or add an index. The user is using Kotlin + SpringBoot with a 60 second OkHttp timeout.