[OSM-dev] Overpass request timeout : why?

mmd mmd.osm at gmail.com
Sat May 6 16:40:11 UTC 2017


Hi,

Am 06.05.2017 um 15:56 schrieb Fran├žois Lacombe:
> This apparently simple request often fails with timeout but I don't know
> why.Does someone can explain what is the problem with the first one please?

Not sure if you're trying this on your own instance with a country
extract or on the public instance. Anyway, your first query just takes a
bit longer and hits the default timeout of 15 seconds. By adding e.g.
[timeout:300]; at the top of your query you could extend the timeout to
5 minutes.

For your first query, I measured 4.5 minutes on the main instance and
23s on dev instance. Query 2 took 2.5 minutes on main, and 16s on dev.
So, a timeout of 5 minutes looks like a good starting point.

BTW: there might be a recurse down ">;" missing in your first query, if
you also want to receive those single nodes for your ways.

Best regards

-- 









More information about the dev mailing list