My python app runs correctly on localhost. I can access it on port 8080. I’ve exposed this service on port 80 and 443 with http and tls, http handlers. I’m still unable to connect to my app over its fly.dev domain.
First place to check is the logs. With the CLI try fly logs from the folder your app is in. That shows the most recent entries. Can show any issues, errors etc which might explain why it doesn’t respond.
Another good idea is to add healthchecks as it might seem like you app is working, but it actually isn’t. You can stop the deploy proceeding if the app is not responding to requests. I’d suggest adding both a tcp and http healthcheck to the fly.toml file. That way, if the app is not actually responding, you will see that as part of fly deploy and debug there, rather than have it deploy and only find that out then:
I’ve ruled out all of the usual suspects already. Logs are clean. I’m even able to connect to the app over a wireguard tunnel to my fly org. When I connect over the app’s fly.dev domain, I get “Error connection closed” in the browser.
The healthchecks are passing too. The app is supposedly running, but I get nothing.
Ok i see the problem. The health check is failing. I’m not sure why though. I can connect to my app over 8080 via wireguard. It’s also listening on all interfaces now.
Doesn’t seem to be anything on my end. For what it’s worth, another app with a very similar setup on a different fly org is working perfectly.