Error: Synchronous function execution timed out. Use asynchronous execution instead, or ensure the execution duration doesn't exceed 30 seconds. Error Code: 408
I have a simple function (call it: abc) which returns some attribute from a collection bty taking another as input. ABC is polled by a cron that runs every minute in dev and every hour when idle (usually hits function ABC 15-25 times in a go whenever it runs.
ABC is also polled at times from frontend, about 20 times with interval of 6 secs during some operations.
The current timeout of this is 30 s. The execution of this function sometimes randomly times out.
From my logic it's neither that computationally heavy (since it just returns a simple attribute) nor is the polling frequency that high currently. What could be the issue and how to make the timeout more predictable.
Recommended threads
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- Error trying to deploy functions from CL...
✗ Error • on-auth-create (6a00b2ab000c9ce2949b) • Server Error ✗ Error: No functions were pushed. Prject ID: 69ffe0270033a4ac420a
- Intermittent Deploy and Execution Errors...
Project: project-fra-658e2f5f4ba30df91177 Function ID: 69bde006001c56757f49 **Several execution errors with:** Timed out waiting for runtime.\nError Code: 400...