enhanced retry on server error as well as failed to get contents