Rejected Endpoint


ConnectionRefusedError Traceback (most recent call last)

/usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self)

168 try:

→ 169 conn = connection.create_connection(

170 (self._dns_host, self.port), self.timeout, **extra_kw

/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)

95 if err is not None:

—> 96 raise err

97

/usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)

85 sock.bind(source_address)

—> 86 sock.connect(sa)

87 return sock

ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

NewConnectionError Traceback (most recent call last)

/usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)

698 # Make the request on the httplib connection object.

→ 699 httplib_response = self._make_request(

→ 700 raise ConnectionError(e, request=request)

701

702 except ClosedPoolError as e:

ConnectionError: HTTPSConnectionPool(host=‘pwykp8cm2ga0o2vk.us-east4.gcp.endpoints.huggingface.cloud’, port=443): Max retries exceeded with url: / (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0xebbf0b20>: Failed to establish a new connection: [Errno 111] Connection refused’))

Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings…

Is there somebody out here having the same problem as me?

1 Like

I’ve never seen this error before…

https://stackoverflow.com/questions/79055093/ollama-python-unable-to-set-client-host-httpx-connecterror