Hi folks
I have a simple automation that attaches a report file to the version. It works well on the server runtime but if I am running local tests the step where I call automate_context.store_file_result(report)
throws an exception.
Wondering if anyone stumbled on this before?
Traceback (most recent call last):
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\speckle_automate\runner.py", line 173, in run_function
automate_function(automation_context, inputs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Dev\area-sync-report\main.py", line 77, in automate_function
automate_context.store_file_result(Path("report.csv"))
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\speckle_automate\automation_context.py", line 274, in store_file_result
httpx.post(
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_api.py", line 304, in post
return request(
^^^^^^^^
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_api.py", line 100, in request
return client.request(
^^^^^^^^^^^^^^^
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_client.py", line 814, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_client.py", line 901, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_client.py", line 929, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_client.py", line 966, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_client.py", line 1002, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_transports\default.py", line 227, in handle_request
with map_httpcore_exceptions():
File "C:\Users\barbosav\AppData\Local\Programs\Python\Python312\Lib\contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "C:\Users\barbosav\AppData\Local\pypoetry\Cache\virtualenvs\speckle-automate-py-zHFqlJ0g-py3.12\Lib\site-packages\httpx\_transports\default.py", line 83, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 11001] getaddrinfo failed