Changing the error trigger to throw an exception rather than  an error so we can catch the error and retry the call to the api when it timesout