I have a weird problem with Replit.
I created a new Python project.
I tried running a Flask server in there - installed flask with
pip - I get the logs in the console that the server is running. But all I get is this error:
[REPL URL] unexpectedly closed the connection.
I tried accessing the Repl URL using http, https, and changing ports from the defaults (80, 443), but it does not seem to work.
The weird part is that I created a new Repl with the Flask template and run it and it worked just fine.
so I copied the whole
.py from the newly created project with flask template and pasted in the Python project that I mentioned earlier and it does not work as expected there.
I tried the same with JS and Express and got the same result. Are there any other thing to set up for the server in order to work in the Python project that I do not know of?