This is a self-hosted AppWrite instance, version 1.6.1.
I have a very simple testing function:
TypeScript
return res.json({
motto: "Build like a team of hundreds_",
learn: "https://appwrite.io/docs",
connect: "https://appwrite.io/discord",
getInspired: "https://builtwith.appwrite.io",
});
However, try running it always returns 500 error, with nothing much to work with in the error log:
Here's the error in the appwrite container:
TypeScript
Function timed out during cold start.
And this is what shows up in the executor container:
TypeScript
[Error] Type: Exception
[Error] Message: Function timed out during cold start.
[Error] File: /usr/local/app/http.php
[Error] Line: 1229
[Error] Type: Exception
[Error] Message: Function timed out during cold start.
[Error] File: /usr/local/app/http.php
[Error] Line: 1229
What should I do next to try to debug this?
TL;DR
AppWrite developers are experiencing a cold start timeout issue with a simple testing function. Error log shows "Function timed out during cold start." Next steps should include debugging the function code, checking if any dependencies are causing delays, and optimizing the function for faster execution during cold starts.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 ...