EdwardBetts / osm-wikidata

Match OSM entities with Wikidata items
http://osm.wikidata.link/
GNU General Public License v3.0
109 stars 20 forks source link

matcher.overpass.RateLimited #601

Open airon90 opened 3 years ago

airon90 commented 3 years ago

I just looked for "Legnano"

URL: https://osm.wikidata.link/candidates/relation/45380

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask_sockets.py", line 40, in __call__
    handler, values = adapter.match()
  File "/usr/lib/python3/dist-packages/werkzeug/routing.py", line 1799, in match
    raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/srv/osm-wikidata/matcher/view.py", line 722, in candidates
    return render_template('candidates.html',
  File "/usr/lib/python3/dist-packages/flask/templating.py", line 137, in render_template
    return _render(
  File "/usr/lib/python3/dist-packages/flask/templating.py", line 120, in _render
    rv = template.render(context)
  File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "/srv/osm-wikidata/matcher/templates/candidates.html", line 159, in <module>
    {% set sentinel = 314159 %}
  File "/srv/osm-wikidata/matcher/templates/base.html", line 33, in <module>
    {% block content %}{% endblock %}
  File "/srv/osm-wikidata/matcher/templates/candidates.html", line 334, in <module>
    {% set larger_areas = place.suggest_larger_areas() | list %}
  File "/srv/osm-wikidata/matcher/place.py", line 1515, in suggest_larger_areas
    for e in reversed(self.is_in() or []):
  File "/srv/osm-wikidata/matcher/place.py", line 1508, in is_in
    self.overpass_is_in = overpass.is_in_lat_lon(self.lat, self.lon)
  File "/srv/osm-wikidata/matcher/overpass.py", line 476, in is_in_lat_lon
    return get_elements(oql)
  File "/srv/osm-wikidata/matcher/overpass.py", line 77, in get_elements
    return run_query(oql).json()["elements"]
  File "/srv/osm-wikidata/matcher/overpass.py", line 71, in run_query
    raise RateLimited
matcher.overpass.RateLimited