Hello, I did two tests:
First test: success - based on REQUEST only
from geopy.geocoders import Nominatim
import time
from pprint import pprint
from datetime import timedelta
#import request
import json
r = REQUEST(f"http://router.project-osrm.org/route/v1/car/16.8620293,41.1257843;16.4114643,41.1527614?overview=false""")
routes = json.loads(r.content)
route_1 = routes.get("routes")[0]
return route_1
Second test: failed - based on REQUEST with geocode
from geopy.geocoders import Nominatim
import time
from pprint import pprint
from datetime import timedelta
#import request
import json
app= Nominatim(user_agent="tutorial")
location = app.geocode("{}, italy".format($da.comune)).raw
lon1 = float(location['lon'])
lat1 = float(location['lat'])
return lon1, lat1
With the second test I get an error about GeocoderUnavailable. Obviously this code works if Grist is not sandboxed.
Here’s the Docker logs:
2023-07-11T13:21:02.172737361Z 2023-07-11 13:21:02.172 - info: heartbeat email=firstname@lastname.com, userId=6, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1, url=https://gristlab.example.com/o/docs/tMiZ14Es5ZyH/Agromnia/p/30, docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.352221926Z 2023-07-11 13:21:28.351 - info: Client onMessage '{"reqId":39,"method":"applyUserActions","args":[0,[["UpdateRecord","_grist_Table... (1912 length)' email=firstname@lastname.com, userId=6, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1
2023-07-11T13:21:28.367820636Z 2023-07-11 13:21:28.367 - debug: activeDocMethod access=owners, userId=6, email=firstname@lastname.com, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1, docId=tMiZ14Es5ZyHvJ7wBs2Neu, docMethod=applyUserActions
2023-07-11T13:21:28.368007335Z 2023-07-11 13:21:28.367 - debug: ActiveDoc _applyUserActions(Client 659834a893ac49cd #1, [['UpdateRecord', '_grist_Tables_column', 512, {isFormula: true, formula: 'from geopy.geocoders import Nominatim\n' +
2023-07-11T13:21:28.368014308Z 'import time\n' +
2023-07-11T13:21:28.368016352Z 'from pprint import pprint \n' +
2023-07-11T13:21:28.368018264Z 'fro... (1677 length)'}]]) access=owners, userId=6, email=firstname@lastname.com, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1, docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.481304903Z 2023-07-11 13:21:28.481 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8615f096a0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.486818967Z 2023-07-11 13:21:28.486 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8615f09b80>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784494412Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: [INFO] [engine] Traceback (most recent call last): sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784639563Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 200, in _new_conn sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784745012Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: sock = connection.create_connection( sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784785687Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 60, in create_connection sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784815581Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784846370Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: File "/usr/local/lib/python3.9/socket.py", line 954, in getaddrinfo sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784887368Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: for res in _socket.getaddrinfo(host, port, family, type, proto, flags): sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784921708Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: socket.gaierror: [Errno -2] Name or service not known sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784938871Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784957668Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: The above exception was the direct cause of the following exception: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.784987897Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.785011391Z 2023-07-11 13:21:28.784 - info: Sandbox stderr: Traceback (most recent call last): sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.785043191Z 2023-07-11 13:21:28.785 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 790, in urlopen sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.785064196Z 2023-07-11 13:21:28.785 - info: Sandbox stderr: response = self._make_request( sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.785094057Z 2023-07-11 13:21:28.785 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 491, in _make_request sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.785112990Z 2023-07-11 13:21:28.785 - info: Sandbox stderr: raise new_e sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786008121Z 2023-07-11 13:21:28.785 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 467, in _make_request sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786063874Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: self._validate_conn(conn) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786117641Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786145133Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: conn.connect() sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786159418Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 604, in connect sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786196213Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: self.sock = sock = self._new_conn() sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786222204Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 207, in _new_conn sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786240806Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: raise NameResolutionError(self.host, self, e) from e sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786273251Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPSConnection object at 0x7f8615f094c0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786302755Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786317296Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: The above exception was the direct cause of the following exception: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786334564Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786372643Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: Traceback (most recent call last): sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786399112Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 486, in send sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786413581Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: resp = conn.urlopen( sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786433779Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 874, in urlopen sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786447523Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: return self.urlopen( sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786471413Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 874, in urlopen sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786505365Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: return self.urlopen( sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786528324Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 844, in urlopen sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786548811Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: retries = retries.increment( sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786566637Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 515, in increment sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786601618Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786631444Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?q=Bisceglie%2C+italy&format=json&limit=1 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8615f094c0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786646655Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786663707Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: During handling of the above exception, another exception occurred: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786704103Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786728390Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: Traceback (most recent call last): sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786745236Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/geopy/adapters.py", line 457, in _request sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786764850Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: resp = self.session.get(url, timeout=timeout, headers=headers) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786782324Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 602, in get sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786799898Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: return self.request("GET", url, **kwargs) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786834491Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 589, in request sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786863867Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: resp = self.send(prep, **send_kwargs) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786878206Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 703, in send sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786895475Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: r = adapter.send(request, **kwargs) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786945276Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 519, in send sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786972999Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: raise ConnectionError(e, request=request) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.786987738Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?q=Bisceglie%2C+italy&format=json&limit=1 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8615f094c0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787005858Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787022175Z 2023-07-11 13:21:28.786 - info: Sandbox stderr: During handling of the above exception, another exception occurred: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787052094Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787066306Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: Traceback (most recent call last): sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787083307Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: File "/grist/sandbox/grist/engine.py", line 952, in _recompute_one_cell sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787133144Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: result = col.method(record, table.user_table) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787173616Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: File "usercode", line 371, in geolocation sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787193589Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: location = app.geocode("{}, italy".format(rec.da.comune)).raw sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787215469Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/geopy/geocoders/nominatim.py", line 297, in geocode sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787233310Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: return self._call_geocoder(url, callback, timeout=timeout) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787268946Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/geopy/geocoders/base.py", line 368, in _call_geocoder sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787300000Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: result = self.adapter.get_json(url, timeout=timeout, headers=req_headers) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787314296Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/geopy/adapters.py", line 447, in get_json sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787331379Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: resp = self._request(url, timeout=timeout, headers=headers) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787375583Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: File "/usr/local/lib/python3.9/site-packages/geopy/adapters.py", line 469, in _request sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787403191Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: raise GeocoderUnavailable(message) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787406477Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: geopy.exc.GeocoderUnavailable: HTTPSConnectionPool(host='nominatim.openstreetmap.org', port=443): Max retries exceeded with url: /search?q=Bisceglie%2C+italy&format=json&limit=1 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8615f094c0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")) sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.787424557Z 2023-07-11 13:21:28.787 - info: Sandbox stderr: sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.793513553Z 2023-07-11 13:21:28.793 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f86105de3a0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.794694655Z 2023-07-11 13:21:28.794 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f86105de550>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.798331149Z 2023-07-11 13:21:28.798 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f86105cc1f0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.799479048Z 2023-07-11 13:21:28.799 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f86105cc3a0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.802507133Z 2023-07-11 13:21:28.802 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f86105d3130>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.803564959Z 2023-07-11 13:21:28.803 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f86105d32e0>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=Bisceglie%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.806973581Z 2023-07-11 13:21:28.806 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8610602070>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.808078645Z 2023-07-11 13:21:28.807 - info: Sandbox stderr: [WARNING] [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8610602220>: Failed to resolve 'nominatim.openstreetmap.org' ([Errno -2] Name or service not known)")': /search?q=%2C+italy&format=json&limit=1 sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.810846708Z 2023-07-11 13:21:28.810 - debug: Sandbox pyCall[apply_user_actions] took 442 ms sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.815508777Z 2023-07-11 13:21:28.815 - debug: Sandbox memory memory=147304448, sandboxPid=548, flavor=gvisor, command=undefined, entryPoint=(default), docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:21:28.819729685Z 2023-07-11 13:21:28.819 - debug: Sharing _doApplyUserActions access=owners, userId=6, email=firstname@lastname.com, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1, docId=tMiZ14Es5ZyHvJ7wBs2Neu, actionNum=6293, linkId=0, otherId=0, numDocActions=3, numRows=6, author=firstname@lastname.com, session=9jzrLhnUGFVKqDrf58isRC
2023-07-11T13:21:28.819809358Z 2023-07-11 13:21:28.819 - debug: _doApplyUserActions (Local): stored #0 [0]: ['ModifyColumn', 'TravelExpense', 'geolocation', {formula: 'from geopy.geocoders import Nominatim\n' +
2023-07-11T13:21:28.819814337Z 'import time\n' +
2023-07-11T13:21:28.819816443Z 'from pprint import pprint \n' +
2023-07-11T13:21:28.819818302Z 'fro... (1677 length)'}]
2023-07-11T13:21:28.819875000Z 2023-07-11 13:21:28.819 - debug: _doApplyUserActions (Local): stored #1 [0]: ['UpdateRecord', '_grist_Tables_column', 512, {formula: 'from geopy.geocoders import Nominatim\n' +
2023-07-11T13:21:28.819879061Z 'import time\n' +
2023-07-11T13:21:28.819885873Z 'from pprint import pprint \n' +
2023-07-11T13:21:28.819887719Z 'fro... (1677 length)'}]
2023-07-11T13:21:28.819958749Z 2023-07-11 13:21:28.819 - debug: _doApplyUserActions (Local): stored #2 [0]: ['BulkUpdateRecord', 'TravelExpense', [1, 2, 3, 4, 5], {geolocation: [['E', 'GeocoderUnavailable'], ['E', 'GeocoderUnavailable'], ['E', 'GeocoderUnavailable'], ['E', 'GeocoderUnavailable'], ['E', 'GeocoderUnavailable']]}]
2023-07-11T13:21:28.823633506Z 2023-07-11 13:21:28.823 - info: Sandbox row count access=owners, userId=6, email=firstname@lastname.com, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1, docId=tMiZ14Es5ZyHvJ7wBs2Neu, rowCount=295
2023-07-11T13:21:28.825255308Z 2023-07-11 13:21:28.825 - debug: ActiveDoc _applyUserActions returning {actionNum: 6293, retValues: [null], isModification: true} access=owners, userId=6, email=firstname@lastname.com, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1, docId=tMiZ14Es5ZyHvJ7wBs2Neu
2023-07-11T13:22:14.173961635Z 2023-07-11 13:22:14.173 - info: heartbeat email=firstname@lastname.com, userId=6, age=16, org=docs, altSessionId=9jzrLhnUGFVKqDrf58isRC, clientId=659834a893ac49cd, counter=1, url=https://gristlab.example.com/o/docs/tMiZ14Es5ZyH/Agromnia/p/30, docId=tMiZ14Es5ZyHvJ7wBs2Neu