sportradar / UnifiedOddsSdkNet

Other
15 stars 8 forks source link

HealthCheck !! #43

Open fr4nky80 opened 2 years ago

fr4nky80 commented 2 years ago

I think it would be nice to have accessible if the SDK is available or down. There are times when we get error 500 from the Api and there is no feedback in the plugin.

A kind of heart beat or health check to be able to consult from the IUOFConnection would be great to avoid late bets.

dhrovat commented 2 years ago

Rabbit connection problems and processing of feed messages errors are notified via various IOddsFeed events, problems with API connection/responses can be catched if the ExceptionHandlingStrategy is set to Throw. If you had something else in mind, please explain a bit more.

andrewmweaver89 commented 1 year ago

Im seeing this too in the java sdk. How would it be best to handle when we receive invalid response eg/ 500. Right now im catching the exception and just logging. Is this recoverable/retryable or indicative of a SportRadar avaliability problem?