I am doing a project on an android app with flask backend on Pycharm and came across an issue failing to connect to flask server. I found out that my server was failing to start properly for some reason even though it shows
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Error displayed in browser
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Also noticed I couldn't change ports and it only ran on this address. Just to clarify a doubt I run an old project, which was working, and found that too failed to run showing same error. Lastly I just created a fresh project to run the default auto generated code for hello world, and that too showed error.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run()
What could be the problem? Does it have something to do with pycharm?