Back

Operation timed out after 30000 milliseconds with 0 bytes received with status code

  • 0
  • Self Hosted
  • Functions
polbuhanky
4 Feb, 2024, 18:48

I get error like this, but i have a hard function, which execute for ~1 minute. I set timeout 120sec in console. But I read that synchronous executions has max timeout 30sec. How can I execute my python function async?

TL;DR
Title: 'Operation timed out' error when trying to execute a lengthy function Developers are experiencing an error where their function times out after 30 seconds, even though they have set the timeout to 120 seconds in the console. They want to know how to execute their Python function asynchronously. Solution: To execute the Python function asynchronously, developers can use asynchronous programming techniques such as using the asyncio library or implementing multi-threading. This allows the function to run in the background while other code continues to execute. Additionally, they can consider optimizing the function to reduce its execution time and improve efficiency.
polbuhanky
4 Feb, 2024, 18:56

But my function should return a result

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