I have a method that makes an API call and if an error occurs it will retry the call with a different instance of the same service API.
var getResponse =