In the existing code, the return was missing when retrying the request, therefore I've added it (line 142)