Fix waiting in case of 429 http code