Flask issue on Discord Bot

I am getting this error everytime I run a bot:

  • Serving Flask app “” (lazy loading)
  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)

I made the bot using a tutorial on freecodecamp, and followed their steps with the usage of Flask. Does someone know how I can fix the Flask error?

There is no error here. the Warning is simply a warning that the development server is not intended for production use. (its not been designed with security and load balancing. only intended for testing/dev)

if you were to move it to a server with WSGI capabilities like Apache or Nginx.
you would add one more file to the project flaskapp.wsgi that the server would use in place of your typing “FLASK run” in your dev environment.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.