retry maximum 3 times if http request failed