Back

Synchronous function execution timed out.

  • 0
  • Self Hosted
  • Web
L
23 Jul, 2024, 12:58

Some of my functions are having problems, and I can't identify why. My functions only communicate with the database and do not make calls to other functions. I'm getting the following error:

TypeScript
Synchronous function execution timed out. Use asynchronous execution instead, or ensure the execution duration doesn't exceed 30 seconds.
Error Code: 408

I use a stress testing tool, and this error usually occurs when I increase the number of threads (users) in the tool. what could it be?

TL;DR
Developers are encountering a "Synchronous function execution timed out" error code 408 when stress testing their functions, particularly when increasing the number of threads. This error suggests the function is taking too long to execute. Consider optimizing the function or switching to asynchronous execution to prevent the timeout issue.
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