Closed 707 closed 7 months ago
Hi @707 thank you for reporting. The streamlit app seems to run currently, but yeah can see your error in the logs. ConnectionError due to too many requests. Could just be an OSM server hiccup, but maybe there is some issue due to large geometries etc. Do you still know which address you queried when receiving the error?
The addresses were:
Surbiton London Chennai India
Alternatively, I was able to get the script running locally through pip now so thanks for that.
Was thinking maybe there is some issue due to large geography etc. but both locations work for me in the webapp. Maybe it was a temporary issue etc. Closing this, please feel free to reopen if the issue persists etc.
Hello there, I'm getting an error on the streamlit app when submitting a new location for generation. Sharing the error code below.
requests.exceptions.ConnectionError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app). Traceback:
File "/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script exec(code, module.dict) File "/mount/src/prettymapp/streamlit-prettymapp/app.py", line 167, in
aoi = get_aoi(address=address, radius=radius, rectangular=rectangular)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mount/src/prettymapp/prettymapp/geo.py", line 47, in get_aoi
lat, lon = geocode(address)
^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/osmnx/geocoder.py", line 45, in geocode
response_json = _nominatim._nominatim_request(params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/osmnx/_nominatim.py", line 106, in _nominatim_request
response = requests.get(
^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)