This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

service timed out

0

We're receiving timeout errors this morning. Is the nominatim service down?

_call_geocoder raise GeocoderTimedOut('Service timed out') GeocoderTimedOut: Service timed out

asked 08 May '17, 16:24

gadgroup's gravatar image

gadgroup
11112
accept rate: 0%

There seem to be sporadic problems at http://nominatim.openstreetmap.org. Sometimes it is working, sometimes I'm receiving a 503 Service Unavailable.

(08 May '17, 16:46) scai ♦

I'm calling the service from a python program using the following...

# Initialize the Geo Locator
 geolocator = Nominatim()

Then sending a location.....

My log file is reporting the following...

_call_geocoder raise GeocoderTimedOut('Service timed out') GeocoderTimedOut: Service timed out

(08 May '17, 16:53) gadgroup

One Answer:

1

The server is again having trouble with users over-using the service. Remember that we are running on volunteer-run machines with limited resources. So when you are seeing Service timed out errors, you can help greatly by stopping your scripts for a while until admins have taken measures to get the traffic under control.

Given that Python scripts are a significant contributor to the server issues, I'd like to remind everybody at this point that we have a usage policy. Among other things, you should be

  • sending a user agent other than Python-urllib and
  • limit your queries to 1 request per second.

It would be greatly appreciated if you could take a minute and check that your script fulfills these requirements.

answered 24 May '17, 22:53

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Source code available on GitHub .