What to do if replit console doesn't show debug information but in browser I see a white screen?


On render previous version of my ai.app for branding is now running but in new version I fine tune ai.engine in my program for you all ^^ Soma = { https://soma-gbep.onrender.com } but before push it in github from replit and than deploy onrender.com from github β€” I want test new engine from replit, and in console I see:

* Serving Flask app 'main'
* Debug mode: on
WARNING: Use a production WSGI server instead.
* Running on all addresses (
* Running on
* Running on
* Press CTRL+C to quit 
* Restarting with stat

and replit provide me webview with white screen and link = { https://somabsflaskupd.indrad3v4.repl.co/ } where I see white screen too, so Replit Community β€” what to do for successfully run program in browser?

Repl link/Link to where the bug appears:


Screenshots, links, or other helpful context:

Do you have debug enabled on your Flask app? That causes this to happen.

1 Like

Yes, like this:

if __name__ == "__main__":
    app.run(host='', port=int(os.getenv('PORT', 5000)), debug=True)

First of all why are you using secrets to store the port and second of all why are the quotes inconsistent?

Here’s the fixed code

if __name__ == "__main__":
    app.run(host="", port=5000)

Ty! I see displayed text :smiley:


What is the error in the Console?

Tomorrow (12.08.2023) will debug it :smiley:
TY @QwertyQwerty88

1 Like

Okay, well, that’s just an error with your code, and your Repl is private.

1 Like