The ESA web API is not the most stable one and I have seen requests fail some times. It would be great if there would be a way for sentinel5dl to retry requests and downloads once if they fail before failing in general.
As a short tip, the __http_request(…) should throw an exception if a request fails and we could use Python's try-except to catch this exception and try again.
Some additional random thoughts:
We shouldn't retry indefinitely since that may result in an endless loop if a real error occurs
We might want to wait for a second or so before re-trying
The ESA web API is not the most stable one and I have seen requests fail some times. It would be great if there would be a way for sentinel5dl to retry requests and downloads once if they fail before failing in general.