Back
Operation timed out after 30000 milliseconds with 0 bytes received with status code
- 0
- Self Hosted
- Functions
polbuhanky
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
But my function should return a result
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...