Currently a error 429 (Too many request) triggers a quadratic backoff, see Add retry in resources.GetRemote for temporary HTTP errors by bep · Pull Request #11326 · gohugoio/hugo · GitHub
But for several APIs this isn’t the best possible solution, like the ones provided by Wikipedia. In those APIs a response with error 429 also has a Retry-After which indicates after what wait time the next request should be made. I’m well aware that this might be longer then the configured timeout, so this might not help either. But it gives a better indication.
Has anyone here has an idea how to handle those? Since the isn’t a wait or sleep it might be hard to implement it in a template.
Since @irkode wrote this post on paged APIs, maybe he has an idea?