Error 1016 on one of my configurations and bad gateway on another tunneling

What is the name of the domain?

uma-fuma.com

What is the error number?

Error 1016

What is the error message?

Origin DNS error

What is the issue you’re encountering

I am unable to use my subdomain I have set up with my tunnel on one of my configurations it just says bad gate way on another I get error 1016 this is all happening from my docker container thats hosting a flask server they both seem to be working fine and the tunnel says its healthy

What steps have you taken to resolve the issue?

I have tried configuring the DNS messed with the CNAME to match my domain I also tried to create an A DNS record with my actual IP and that didnt work either
I tried adding my IP Addresses in the Security WAF section too but that also didnt work

What are the steps to reproduce the issue?

Verify that the subdomain is mapped to the proper local port
Run container with the tunnel and the flask server
Attempt to connect to the subdomain
Receive Error

Screenshot of the error

You can refer to the documentation for the 1016 error code; this might help you identify the misconfiguration.

May I ask how did you configured and installed your tunnel?
Was it via dashboard or locally?

If you run cloudflared tunnel list, do you see your tunnel there? :thinking:

Under the DNS tab, is the CNAME record :orange: proxied and created as well?

Remove the manually created CNAME and run cloudflared tunnel route dns to re-create it.

Useful article:

I have created the a new cname record using the command you suggested and I no longer get the 1016 error but now I do not see any of the content that is on my flask server it just appears as a blank page when I look at the console I in the dev tools it shows a 404 error but when I check the local host I see the hello world text I have set up to test the connection is working properly do you have any recommendations on how to resolve this?

Wonder if the route and routing is okay with it through the flash app :thinking: