Quick Tunnel 404 Error

What is the name of the domain?

None

What is the error number?

404

What is the error message?

DBG 404 Not Found connIndex=0 content-length=0 event=1 ingressRule=1 originService=http_status:404

What is the issue you’re encountering

Quick Tunnel 404 Error

What are the steps to reproduce the issue?

I was working on Ubuntu24.04 and did the following steps.
cloudflared version 2025.4.2 (built 2025-04-30-1407 UTC).
I built a simple web app using Python and Streamlit:

import streamlit as st

st.title("Hello World")

Then, I ran this command:

streamlit run test.py

At this point, I saw the following message:

You can now view your Streamlit app in your browser.

Local URL: http://localhost:8501
Network URL: http://192.168.0.20:8501
External URL: http://115.39.73.192:8501

I was able to access http://localhost:8501 and http://192.168.0.20:8501 just fine.
Next, I tried using Cloudflare’s Quick Tunnel with this command:

cloudflared tunnel --url http://localhost:8501  --loglevel debug

However, the log showed this error:

DBG 404 Not Found connIndex=0 content-length=0 event=1 ingressRule=1 originService=http_status:404

When I tried to access the URL that was generated, I got an HTTP ERROR 404.
I checked the firewall settings, and everything seems to be fine:

ufw allow 8501

For reference, when I used ngrok, it worked without any issues:

ngrok http http://localhost:8501

The same 404 error also happened when I tried using a regular tunnel (not Quick Tunnel).
I’ve done this setup on Windows 11 before, but it’s my first time doing it on Ubuntu, so I might have missed something simple. Thanks in advance!

By commenting out the following in ~/.cloudflared/config.yml, it started working:

# ingress:
#   ...
#   - service: http_status:404

I didn’t realize that Quick Tunnel also references the config.yml. Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.