sim icon indicating copy to clipboard operation
sim copied to clipboard

Sim.AI Workflow Blocks (API Block) Timing Out — Request to Increase Block Execution Timeout

Open SAljajith opened this issue 2 months ago • 27 comments

When using Sim.AI Workflow Blocks, especially the API Block, the execution frequently fails due to block timeout. This happens even when the external API or computation needs a few extra seconds.

The block stops executing and returns a failure even though the external API eventually responds.

Create a workflow in Sim.AI Studio.

Add an API Block that calls an endpoint requiring 220– 340 seconds (or more).

Run the workflow.

The block returns a timeout error before the external API responds.

Expected Behavior

Block should wait until the API response arrives within a reasonable limit.

The block timeout should be configurable, so users can increase max wait time.

SAljajith avatar Dec 08 '25 07:12 SAljajith

@SAljajith for workflows that take longer than ~3 minutes, we recommend that users carry those tasks out asynchronously. In the deployment modal, you can see the code to run the workflow asynchronously, where you get a job id and can poll until the task is completed.

waleedlatif1 avatar Dec 08 '25 08:12 waleedlatif1

@waleedlatif1 Is there any alternative approach? I already tried using the function-level API call, but the HTTP request isn’t working due to security restrictions. Is there any other way to increase the timeout? I’m running Sim.ai through Docker.

SAljajith avatar Dec 08 '25 12:12 SAljajith

If you are self-hosting, the only constraint applied is your infrastructure. In pure docker, its either the external API timing out, an OS/network-level timeout, or a reverse proxy. @SAljajith

waleedlatif1 avatar Dec 08 '25 23:12 waleedlatif1

@waleedlatif1 Where can we change the timeout configuration in the code?

web-developer-ss avatar Dec 19 '25 06:12 web-developer-ss