Following is my code-
app = Flask(__name__, template_folder='templates')
run_with_ngrok(app)
@app.route("/")
def index():
return render_template('index.html')
app.run()
I keep getting this error – ConnectionRefusedError: [Errno 111] Connection refused
I did get the token from ngrok account and saved it to the config. Apparently this worked for cases discussed a year ago, but for me the problem persists.