Workato · API platform
recipe execution takes too long
Short answer
A Workato API platform endpoint returns 504 with recipe execution takes too long when the API recipe's job does not respond within the endpoint's timeout. The default is 30 seconds and the maximum is 240 seconds, so make the recipe faster or raise the endpoint's timeout.
VerifiedLast verified
01Error text
504 Gateway timeout
recipe execution takes too long02Likely causes
- The job took too long to respond.
- The default quota for API endpoints is 30 seconds.
- For API recipes, the job is terminated and no timeout error is raised, so the Monitor block does not trigger and Error block actions are not executed.
03How to fix it
- Open the job for the timed-out request and find the steps that take the most time.
- Shorten the recipe's work before it responds, for example by removing slow steps from the request path.
- Customize the timeout by editing the API endpoint. The API platform job timeout is 30 seconds by default and 240 seconds at most.
- Do not rely on the recipe's error handling for this case, because the Monitor block is bypassed on an API recipe timeout.
iNotes
The Test request tab uses a fixed 30 second timeout.
04Official documentation
→Related errors
- concurrency limit exceeded / rate/quota limit exceededA Workato API platform endpoint returns 429 with concurrency limit exceeded or rate/quota limit exceeded when the client goes over a limit set by its access policy. Slow the client down, or raise the limit in the access policy.
- 500 Server error (API platform)A Workato API platform endpoint returns 500 Server error when the request parameters are missing or invalid for the API. Compare the request with the parameters the endpoint defines and send the missing or corrected values.
- access to this API has been disallowedA Workato API platform endpoint returns 401 with the message access to this API has been disallowed when there is a problem with the API token, the request configuration or the access policy. It is also returned when the request URL is incorrect or the endpoint is not active.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for Workato work:Open Workato jobsWorkato rates and salariesHire a senior Workato developer