# 404 Error with Flask Space

**URL:** <https://discuss.huggingface.co/t/404-error-with-flask-space/161020>\
**Category:** Beginners\
**Created:** [June 28, 2025, 2:48pm UTC](https://discuss.huggingface.co/t/404-error-with-flask-space/161020 "2025-06-28T14:48:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DreamwalkerAI](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dreamwalkerai/32/50254_2.png) [@DreamwalkerAI](https://discuss.huggingface.co/u/DreamwalkerAI)\
**Post date:** [June 28, 2025, 2:48pm UTC](https://discuss.huggingface.co/t/404-error-with-flask-space/161020/1 "2025-06-28T14:48:40Z")

</div>

Hello Hugging Face Community,

I’m experiencing a persistent 404 error with my Space (DreamwalkerAI/Alita-Heimat-Final) when accessing the URL [https://dreamwalkerai-alita-heimat-final.hf.space/](https://dreamwalkerai-alita-heimat-final.hf.space/). The Space runs locally on port 7860 (Flask app), but external API requests (e.g., POST to /) return a 404 page. I suspect it’s not configured as a Flask app correctly.

Details:

- Space Name: DreamwalkerAI/Alita-Heimat-Final

- Hardware: CPU basic (2 vCPU, 16 GB RAM)

- Logs: Flask runs locally (\* Running on [http://127.0.0.1:7860](http://127.0.0.1:7860)), but external requests fail.

- Test Output: Consistent 404 with HTML response from Hugging Face.

- Token: alita-push-token (hf\_…AGsC, fine-grained, used 6 hours ago).

- Files: All local on my laptop (app.py, mini\_ki\_v3.py, etc.).

. Can anyone help me configure the Space as a Flask app or suggest a fix? I’d appreciate any guidance!

Thanks,

Daniel (DreamwalkerAI)

---

<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:** [June 28, 2025, 9:28pm UTC](https://discuss.huggingface.co/t/404-error-with-flask-space/161020/2 "2025-06-28T21:28:20Z")

</div>

The ports open to the outside in Hugging Face Spaces are quite limited. If necessary, I recommend submitting a request. [website@huggingface.co](mailto:website@huggingface.co)  
[Open port for space to connect to PostgreSQL - #9 by deepkyu](https://discuss.huggingface.co/t/open-port-for-space-to-connect-to-postgresql/29938/9)
