# Rejected Endpoint

**URL:** <https://discuss.huggingface.co/t/rejected-endpoint/155983>\
**Category:** Inference Endpoints on the Hub\
**Created:** [May 20, 2025, 3:31am UTC](https://discuss.huggingface.co/t/rejected-endpoint/155983 "2025-05-20T03:31:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tubin123](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@tubin123](https://discuss.huggingface.co/u/tubin123)\
**Post date:** [May 20, 2025, 3:31am UTC](https://discuss.huggingface.co/t/rejected-endpoint/155983/1 "2025-05-20T03:31:10Z")

</div>

* * *

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?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [May 20, 2025, 7:16am UTC](https://discuss.huggingface.co/t/rejected-endpoint/155983/2 "2025-05-20T07:16:47Z")

</div>

I’ve never seen this error before…

> <https://github.com/huggingface/transformers/issues/28934>
>
> \### System Info
> 
> \`transformers\` version: 4.37.2
> \- Platform: Linux-5.15.0-92-ge…neric-x86\_64-with-glibc2.31
> \- Python version: 3.11.7
> \- Huggingface\_hub version: 0.20.3
> \- Safetensors version: 0.4.2
> \- Accelerate version: 0.26.1
> \- Accelerate config: not found
> \- PyTorch version (GPU?): 2.2.0+cu121 (True)
> \- Tensorflow version (GPU?): not installed (NA)
> \- Flax version (CPU?/GPU?/TPU?): not installed (NA)
> \- Jax version: not installed
> \- JaxLib version: not installed
> 
> 
> 
> \### Who can help?
> 
> \_No response\_
> 
> \### Information
> 
> \- \[X\] The official example scripts
> \- \[\] My own modified scripts
> 
> \### Tasks
> 
> \- \[\] An officially supported task in the \`examples\` folder (such as GLUE/SQuAD, ...)
> \- \[\] My own task or dataset (give details below)
> 
> \### Reproduction
> 
> 1. \`tokenizer = AutoTokenizer.from\_pretrained("distilbert/distilgpt2")\`
> 
> \### Expected behavior
> 
> (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilgpt2/resolve/main/tokenizer\_config.json (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('\<urllib3.connection.HTTPSConnection object at 0x7fa612ffa750\>: Failed to establish a new connection: \[Errno 111\] Connection refused')))")

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