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
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...
- Whats best practise for Appwrite Cloud?
Appwrite Teams map very nicely to my needs, it is how i group users together. ... I use roles to define permissions. Should I also map a table to each team ? ...