retry 500 Internal Server Errors a few times in order to get past timing issues related to node deployment (#6287)