Error Description
When attempting to execute an API call, the task may encounter a timeout. Depending on the configuration of the ExceptionHandlingStrategy, different outcomes will occur.
ExceptionHandlingStrategy is set to Throw, an exception will be thrown when a timeout occurs.ExceptionHandlingStrategy is configured otherwise, such as ReturnNull, the user will receive a null value instead of an exception. Regardless of the outcome, internal exceptions are logged.Applies to
UOF SDK for .NET (both versions)
Symptoms
All API calls have specified timeouts configured. Calls related to summary, single variant markets, draw summary, competitor profiles, and player profiles are considered time-critical and are configured with a HttpClientFastFailingTimeout (defaulting to 5 seconds), while other calls use HttpClientTimeout (defaulting to 30 seconds).
In the execution log user can search for TaskCanceledException (.NET) and TimeoutException (java).
Resolution
To address this issue, users can take the following steps:
HttpClientFastFailingTimeout and HttpClientTimeout based on the specific requirements and criticality of the API calls. Both timeouts can be configured via ConfigurationBuilder.