You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quezon City
Internal Server Error: /search/
Traceback (most recent call last):
File "/home/gridlockdev/Desktop/heroku/grace/env/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/home/gridlockdev/Desktop/heroku/grace/env/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/gridlockdev/Desktop/heroku/grace/env/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/gridlockdev/Desktop/heroku/grace/network/views.py", line 40, in query_overpass
city_boundary = overpass.query(city_query)
File "/home/gridlockdev/Desktop/heroku/grace/env/lib/python3.5/site-packages/OSMPythonTools/internal/cacheObject.py", line 38, in query
result = self._rawToResult(data, queryString)
File "/home/gridlockdev/Desktop/heroku/grace/env/lib/python3.5/site-packages/OSMPythonTools/overpass.py", line 44, in _rawToResult
return OverpassResult(data, queryString)
File "/home/gridlockdev/Desktop/heroku/grace/env/lib/python3.5/site-packages/OSMPythonTools/overpass.py", line 73, in __init__
self._elements = list(map(lambda e: Element(json=e), self.__get('elements')))
File "/home/gridlockdev/Desktop/heroku/grace/env/lib/python3.5/site-packages/OSMPythonTools/overpass.py", line 87, in __get
return self._json[prop] if prop in self._json else None
TypeError: argument of type 'NoneType' is not iterable
At first I assumed that there really might be no element to return, but I tried it over at Overpass Turbo and it returns exactly what I want. See: http://overpass-turbo.eu/s/tfP
Other than this problem, it works great! 👍
Hope you could help! Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi! I'd like to ask how to resolve the issue where querying an overpass name that most probably be because of a space in between causes a TypeError.
This is how the code looks like in my python views:
and the error it raises:
At first I assumed that there really might be no element to return, but I tried it over at Overpass Turbo and it returns exactly what I want. See: http://overpass-turbo.eu/s/tfP
Other than this problem, it works great! 👍
Hope you could help! Thanks in advance!
The text was updated successfully, but these errors were encountered: