afunwormOriginal post
Web Developer
This is a self-hosted AppWrite instance, version 1.6.1.
I have a very simple testing function:
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:
Function timed out during cold start.
And this is what shows up in the executor container:
[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?
Summary
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.