# Persistent '404 Not Found' Error from Inference API on a specific machine

**URL:** <https://discuss.huggingface.co/t/persistent-404-not-found-error-from-inference-api-on-a-specific-machine/168586>\
**Category:** Beginners\
**Created:** [September 22, 2025, 9:11am UTC](https://discuss.huggingface.co/t/persistent-404-not-found-error-from-inference-api-on-a-specific-machine/168586 "2025-09-22T09:11:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![murali00150](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@murali00150](https://discuss.huggingface.co/u/murali00150)\
**Post date:** [September 22, 2025, 9:11am UTC](https://discuss.huggingface.co/t/persistent-404-not-found-error-from-inference-api-on-a-specific-machine/168586/1 "2025-09-22T09:11:02Z")

</div>

Hello,

I am getting a consistent `404 Not Found` error when trying to use the Inference API from my computer. I have done extensive debugging and need help diagnosing a machine-specific issue.

I have confirmed that:

- The error happens with both public models (`gpt2`) and gated models.

- It happens when I bypass my Python code and use `Invoke-WebRequest` (curl) directly in my terminal.

- It happens with **two different, valid Hugging Face accounts**.

- Most importantly, it happens on **two different internet connections** (my home WiFi and my mobile hotspot).

This proves the issue is not my code, my account, or my network, but something on my specific machine’s configuration (firewall, proxy, security software, etc.) that is causing the connection to fail. Can anyone provide guidance on what to check on my computer?

---

<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:** [September 22, 2025, 9:42am UTC](https://discuss.huggingface.co/t/persistent-404-not-found-error-from-inference-api-on-a-specific-machine/168586/2 "2025-09-22T09:42:06Z")

</div>

I think there are several possible causes, but [if it’s a 404 error, the most likely candidate is probably related to the` X-Forwarded-Host` header](https://discuss.huggingface.co/t/requests-fail-with-404-on-huggingface-inference-due-to-x-forwarded-host-header/149371).

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](https://discuss.huggingface.co/u/meganariley)\
**Post date:** [September 22, 2025, 7:04pm UTC](https://discuss.huggingface.co/t/persistent-404-not-found-error-from-inference-api-on-a-specific-machine/168586/3 "2025-09-22T19:04:40Z")

</div>

Hi @murali00150 Thanks for posting! The model [openai-community/gpt2 · Hugging Face](https://huggingface.co/openai-community/gpt2) is not available to use with Inference Providers at this time, though on the model page you can request provider support for it!

Note that other models you’re using might not be available with HF Inference but instead with one of the many other Inference Providers. The model page will also show you which providers are available.

If needed, you can also deploy the gpt2 model with Inference Endpoints (dedicated) instead: [https://endpoints.huggingface.co](https://endpoints.huggingface.co).

To see which models are available to use with HF Inference, check out our filtered search [here](https://huggingface.co/models?inference_provider=hf-inference&sort=trending)!

---

<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:** [September 22, 2025, 9:34pm UTC](https://discuss.huggingface.co/t/persistent-404-not-found-error-from-inference-api-on-a-specific-machine/168586/4 "2025-09-22T21:34:21Z")

</div>

Oh, really… I thought it meant it wouldn’t work on just one of the PCs.

Try using [the deployed model](https://huggingface.co/models?apps=tgi,vllm&inference_provider=all&sort=trending).
