192
Views
3
Comments
Solved
translating the error message The connection has timed out

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?

2025-01-09 14-56-57
IQ78
Solution

Did u try Exception Handler widget?

2019-09-30 07-35-56
Aurelio Junior
Solution

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.

2025-01-09 14-56-57
IQ78
Solution

Did u try Exception Handler widget?

2019-09-30 07-35-56
Aurelio Junior
Solution

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.

2023-01-25 11-50-23
Gwen Jamroziak

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!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.