# Issue with URL Resolution/Blocked on Hugging Face Spaces

**URL:** <https://discuss.huggingface.co/t/issue-with-url-resolution-blocked-on-hugging-face-spaces/95982>\
**Category:** Spaces\
**Created:** [July 7, 2024, 4:56pm UTC](https://discuss.huggingface.co/t/issue-with-url-resolution-blocked-on-hugging-face-spaces/95982 "2024-07-07T16:56:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuntian-deng](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/yuntian-deng/32/29081_2.png) [@yuntian-deng](https://discuss.huggingface.co/u/yuntian-deng)\
**Post date:** [July 7, 2024, 4:56pm UTC](https://discuss.huggingface.co/t/issue-with-url-resolution-blocked-on-hugging-face-spaces/95982/1 "2024-07-07T16:56:25Z")

</div>

Hi everyone,

I am experiencing an issue with URL resolution in my Hugging Face Space ([Chat-with-GPT - a Hugging Face Space by yuntian-deng](https://huggingface.co/spaces/yuntian-deng/ChatGPT)). My setup involves sending user requests to my own URL using requests:

```auto
import requests
response = requests.post(API_URL, headers=headers, json=payload, stream=True)

```

Where `API_URL` is my website URL. Recently, I encountered a problem where the URL without “www” (which I have been using for over a year now) is blocked, while the URL with “www” works fine. Here are two examples to reproduce the issue (I didn’t reveal my real API URL to avoid potential attacks):

**Not working:**

```python
import requests
response = requests.get('https://[ORIG_URL]')

```

**Working:**

```python
import requests
response = requests.get('https://www.[ORIG_URL]')

```

Both URLs point to the same IP address, and the non-www version has been working for over a year until now. The error I receive is:

```auto
Failed to resolve '[ORIG_URL]'

```

However, this issue does not occur on my own laptop (or on Hugging Face Space for the past year), and adding “www” to the URL resolves the problem on both my laptop and the Hugging Face Space. Who should I contact to take a look at this? Thank you for your help!

---

<div class="post-metadata">

**Author:** ![eienmojiki](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/eienmojiki/32/51353_2.png) [@eienmojiki](https://discuss.huggingface.co/u/eienmojiki)\
**Post date:** [January 19, 2025, 5:24am UTC](https://discuss.huggingface.co/t/issue-with-url-resolution-blocked-on-hugging-face-spaces/95982/2 "2025-01-19T05:24:54Z")

</div>

I have the same problem with Facebook domain name, hope someone can help

---

<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:** [January 19, 2025, 8:15am UTC](https://discuss.huggingface.co/t/issue-with-url-resolution-blocked-on-hugging-face-spaces/95982/3 "2025-01-19T08:15:12Z")

</div>

@not-lain @meganariley @adamm-hf If we combine this with the **api. issue** , it means that there are multiple problems with domain resolution. Something is wrong.
