ITADN

Implement Retry-After on nominatim.openstreetmap.org

#4096Closeddeadbaed 创建于 2026-05-14
D
deadbaedcommented
I accidentally made too many requests to nominatim.openstreetmap.org (forgot to sleep my thread between requests) and got rate limited, which is expected according to [the usage policy](http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy). I wanted to implement a retry system when my software gets HTTP 429s, based on the [Retry-After header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After), however it seems that the header is not implemented by the server. Here's the response headers of my offending requests: ``` connection=close content-length=449 server=Varnish retry-after=0 content-type=text/html; charset=utf-8 accept-ranges=bytes date=Thu, 14 May 2026 13:47:07 GMT via=1.1 varnish x-served-by=cache-par-lfpb1150034-PAR x-cache=MISS x-cache-hits=0 x-timer=S1778766428.558017,VS0,VE5 strict-transport-security=max-age=300 alt-svc=h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400 ``` I do not know if this should be on the Nominatim side or Varnish (or both). I'll just put my thread to sleep between requests in the meantime. Cheers, thank you for this awesome software!
关闭于 2026-05-15 1 条评论