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
- Provider error when creating a function ...
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...