Back

Operation timed out after 30001 milliseconds with 0 bytes received with status code 0\nError Code: 0

  • 0
  • Self Hosted
  • Functions
Mahla
4 Jan, 2024, 09:48

why do I get this error in my functions just randomly? I try to import my database data from a nodejs script. but I get this error for random Executions. server config: 8G RAM, CPU: 4 cores and they don't be used more than 10 percent.

and I attach the .env file.

TL;DR
The user is experiencing an error message in their appwrite container. They are unsure if it is related to their issue. The error message suggests a timeout issue during execution. The user is trying to import database data from a Node.js script. They are experiencing this error randomly and provide their server configuration details. The suggested solution is to increase the timeout value in `_APP_FUNCTIONS_TIMEOUT` in the `.env` file. Additionally, the user can try to optimize their function to reduce execution time or increase the function's timeout length in the function settings. By default, functions have a maximum runtime of 30 seconds, and it seems the user's
Mahla
4 Jan, 2024, 09:58

I got this error in appwrite container but I dont know if it is related or not:

Maintanance task finished. Skipping runtimes stats loop due to error: Docker Error: EOF EOF EOF EOF

ideclon
5 Jan, 2024, 09:34

Functions by default have a max runtime of 30 seconds. It seems your Function is taking longer than that, and is therefore being killed off.

ideclon
5 Jan, 2024, 09:36

You can try to make your Function take less time to run, or you can increase the Function timeout length, in the Settings of your Function.

ideclon
5 Jan, 2024, 09:39

You might also have to increase the timeout value in _APP_FUNCTIONS_TIMEOUT, in your .env file.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more