#Async function call(Operation timed out after 30001 milliseconds with 0 bytes received with ...)

7 messages · Page 1 of 1 (latest)

potent yacht
#

I have deployed cloud function in my self-hosted appwrite. When i call that function, i get the Operation timed out... error. Basically i tried to get list of documents and currently there are only two document in that collection. It works fine with sync functions.

eternal yew
#

Does the function log the response? you can put a log at the beginning of the function and check if it's shown in the appwrite console

#

is const queries = [Query.equal(cid)] passing the right info? it should be [Query.equal(attribute, value)]

potent yacht
#

My bad. Thanks for correcting. After deploying the corrected code i still get same error. I noticed that when i call getAppointme function with "await" i get time-out error and the log is not showing but when i call the function without the "await" then the log in the called function shows. Is there something with "await".

eternal yew
#

The await in return await this.database.listDocuments... isn't necessary
the await in let response = await appwrite.getMedicalAppoitme shouldn't be a problem

crude laurel
#

The problem is in the function and that's the main thing.