opening a flask server in a new tab gives chrome an error.
i have the flask server set up to use multiple pages and i need to open it in a new tab often to test these new pages. but now after opening it in a new tab chrome just says that it got an invalid response. is there something im not doing right?
By looking at this example:-
from flask import Flask app = Flask('app') @app.route('/') def hello_world(): return 'Hello, World!' app.run(host='0.0.0.0', port=8080)
Having a host as
0.0.0.0 is normal.
But in your case:- You forgot to add
port thing too.
Make your line
63 like this and try
app.run(debug=True, host='0.0.0.0', port=8080)
Hope this helps
Yes! The port for your flask server is not there. Since repl.it is an IDE of it's own it's port number is different. Under line
63 paste this code
Your flask looks pretty cool, honestly!
Hope this helped!