Hi, in our application we have an API integration which can sometimes be down or too slow in response time.
We do not wish to increase our Timeout in seconds property, as I know we can do for REST integrations.
What we do want, is to translate the error message "The connection has timed out" which occurs after reaching the default 10 second timeout.
Is there any way to translate this error message so that end users get to see a customized translation message?
Did u try Exception Handler widget?
Hi Gwen,
Where exactly is the timeout ocurring? If the API call is being triggered from a Client Action, you can use an Exception Handler in that Client Action to capture the error. Something like this:
Notice that I've selected the "Communication Exception" in the Exception Handler element, which is the type of exception triggered when a timeout occurs. In this exception flow you can then show the user whatever message you want.
Aha! Indeed, the code starts out from a client action, so I've chosen to use our end user module's On Exception Action to catch specifically the Communication Exception type and in that flow we now use a translatable string to cover our requirement. Thanks to both of you!