I fixed the function fetchWithRetries to correctly retry if there is also a response from the API that is not in the status code 2XX range. Previously, it would not retry if it returned any status code and only caught connection errors/network errors.
I fixed the function fetchWithRetries to correctly retry if there is also a response from the API that is not in the status code 2XX range. Previously, it would not retry if it returned any status code and only caught connection errors/network errors.