504 Timeout errors with the Request API

Hey @RobAtOpinyin!
Are you using Request Method from SDK?
If so, there’s a option called maxAttempts: The maximum number of times a request will try to retrieve a response if a network or 429/5xx HTTP error occurs. The maximum permissible value for this argument is 5.
You can configure as well the retryDelay: The delay between retry requests, specified in milliseconds. The maximum permissible value for this argument is 1500 ms.
Keep in mind that the default serverless event timeout is 20s and if you are calling from frontend (SMI), you have a 5s timeout.

1 Like