retries in the event of http error