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

Question:

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 (0.0.0.0)
* Running on http://127.0.0.1:5000
* Running on http://172.31.196.11:5000
* 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:

https://replit.com/@indrad3v4/SomaBSFlaskUpD?s=app

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='0.0.0.0', 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="0.0.0.0", port=5000)
2 Likes

Ty! I see displayed text :smiley:

2 Likes

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