Function gets stuck, doesn't terminate. It executes everything but then throws 30s sync timeout.
- 0
- Self Hosted
- Functions
I have random occurrences of sync function executions not terminating. I added a test log message right before the return res.json(response, 200, headers); (last line of the function).
While logs don't show in the exeucution view in Appwrite Console, because there it only shows the timeout error (see screenshot), they do show in Sentry. And that test log is being sent, which means the function executes until that line before return statement.
Also, the actual database operations of this function get done.
So it basically does everything it should, but somewhere (on the client perhaps?) completion of the function is not detected. And the 30s sync timeout error gets thrown.
Self-hosted setup with server specs: 4 vCPU 8 GB RAM 40 GB Disk local
Function is not heavy, some db operations. If successful, it finishes in approx. 500ms.
Recommended threads
- hi guys! my site is not accesible in my ...
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...