localtunnel / localtunnel

expose yourself
https://localtunnel.me
MIT License
18.9k stars 1.32k forks source link

Flask and Localtunnel not working for me #597

Open Cluckhead opened 1 year ago

Cluckhead commented 1 year ago

I can't get the simplest python flask app to work using localtunnel. The same flask app works using ngrok, but I'd prefer to use LT as I want to be able to submit the subdomain. I can also get LT to work if I host a http server. Also works if I go to the localhost url.

I eventually get a 504 error, flask debug debug show any requests nor does --print-requests. Any ideas? I feel that I've tried each element separately they works but when i put flask together with lt it doesn't.

Any suggestions?

TheBoroer commented 1 year ago

Hey @Cluckhead, can you try again and see if it works?

I just tested it out with a hello world docker container app and it worked fine.

I used this container image which runs this simple flask app

Commands I ran:

and was able to see hello world on https://flasktest.loca.lt just fine

if you're still having issues, would you mind publishing a repo with a simple flask app where the issue is happening for you?