ConnectError Traceback (most recent call last)
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_transports/default.py:69, in map_httpcore_exceptions()
68 try:
—> 69 yield
70 except Exception as exc:
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_transports/default.py:233, in HTTPTransport.handle_request(self, request)
232 with map_httpcore_exceptions():
→ 233 resp = self._pool.handle_request(req)
235 assert isinstance(resp.stream, typing.Iterable)
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py:216, in ConnectionPool.handle_request(self, request)
215 self._close_connections(closing)
→ 216 raise exc from None
218 # Return the response. Note that in this case we still have to manage
219 # the point at which the response is closed.
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py:196, in ConnectionPool.handle_request(self, request)
194 try:
195 # Send the request on the assigned connection.
→ 196 response = connection.handle_request(
197 pool_request.request
198 )
199 except ConnectionNotAvailable:
200 # In some cases a connection may initially be available to
201 # handle a request, but then become unavailable.
202 #
203 # In this case we clear the connection and try again.
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpcore/_sync/connection.py:99, in HTTPConnection.handle_request(self, request)
98 self._connect_failed = True
—> 99 raise exc
101 return self._connection.handle_request(request)
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpcore/_sync/connection.py:76, in HTTPConnection.handle_request(self, request)
75 if self._connection is None:
—> 76 stream = self._connect(request)
78 ssl_object = stream.get_extra_info(“ssl_object”)
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpcore/_sync/connection.py:122, in HTTPConnection._connect(self, request)
121 with Trace(“connect_tcp”, logger, request, kwargs) as trace:
→ 122 stream = self._network_backend.connect_tcp(**kwargs)
123 trace.return_value = stream
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpcore/_backends/sync.py:205, in SyncBackend.connect_tcp(self, host, port, timeout, local_address, socket_options)
200 exc_map: ExceptionMapping = {
201 socket.timeout: ConnectTimeout,
202 OSError: ConnectError,
203 }
→ 205 with map_exceptions(exc_map):
206 sock = socket.create_connection(
207 address,
208 timeout,
209 source_address=source_address,
210 )
File ~/anaconda3/envs/neo4j/lib/python3.12/contextlib.py:158, in _GeneratorContextManager.exit(self, typ, value, traceback)
157 try:
→ 158 self.gen.throw(value)
159 except StopIteration as exc:
160 # Suppress StopIteration unless it’s the same exception that
161 # was passed to throw(). This prevents a StopIteration
162 # raised inside the “with” statement from being suppressed.
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpcore/_exceptions.py:14, in map_exceptions(map)
13 if isinstance(exc, from_exc):
—> 14 raise to_exc(exc) from exc
15 raise
ConnectError: [Errno 8] nodename nor servname provided, or not known
The above exception was the direct cause of the following exception:
ConnectError Traceback (most recent call last)
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/openai/_base_client.py:973, in SyncAPIClient._request(self, cast_to, options, remaining_retries, stream, stream_cls)
972 try:
→ 973 response = self._client.send(
974 request,
975 stream=stream or self._should_stream_response_body(request=request),
976 **kwargs,
977 )
978 except httpx.TimeoutException as err:
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_client.py:914, in Client.send(self, request, stream, auth, follow_redirects)
912 auth = self._build_request_auth(request, auth)
→ 914 response = self._send_handling_auth(
915 request,
916 auth=auth,
917 follow_redirects=follow_redirects,
918 history=,
919 )
920 try:
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_client.py:942, in Client._send_handling_auth(self, request, auth, follow_redirects, history)
941 while True:
→ 942 response = self._send_handling_redirects(
943 request,
944 follow_redirects=follow_redirects,
945 history=history,
946 )
947 try:
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_client.py:979, in Client._send_handling_redirects(self, request, follow_redirects, history)
977 hook(request)
→ 979 response = self._send_single_request(request)
980 try:
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_client.py:1015, in Client._send_single_request(self, request)
1014 with request_context(request=request):
→ 1015 response = transport.handle_request(request)
1017 assert isinstance(response.stream, SyncByteStream)
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_transports/default.py:232, in HTTPTransport.handle_request(self, request)
220 req = httpcore.Request(
221 method=request.method,
222 url=httpcore.URL(
(…)
230 extensions=request.extensions,
231 )
→ 232 with map_httpcore_exceptions():
233 resp = self._pool.handle_request(req)
File ~/anaconda3/envs/neo4j/lib/python3.12/contextlib.py:158, in _GeneratorContextManager.exit(self, typ, value, traceback)
157 try:
→ 158 self.gen.throw(value)
159 except StopIteration as exc:
160 # Suppress StopIteration unless it’s the same exception that
161 # was passed to throw(). This prevents a StopIteration
162 # raised inside the “with” statement from being suppressed.
File ~/anaconda3/envs/neo4j/lib/python3.12/site-packages/httpx/_transports/default.py:86, in map_httpcore_exceptions()
85 message = str(exc)
—> 86 raise mapped_exc(message) from exc
ConnectError: [Errno 8] nodename nor servname provided, or not known