Hi,
I am getting this error when trying to reload after saving the script:
'Your webapp took a long time to reload. It probably reloaded, but we were unable to check it.'
This is happening only when a function of my webapp is run within an API call, and it works fine when run outside.
That means:
app = Flask(__name__) myfunction_result = myfunction("/home/qolkoj/img1.jpg") @app.route('/') def run_call(): return myfunction_result
Works fine and I can get the result (myfunction_result) when calling the URL.
Now this doesn't work:
app = Flask(__name__) @app.route('/') def run_call(): myfunction_result = myfunction("/home/qolkoj/img1.jpg") return myfunction_result
The reload button takes forever and ends with the error above. The URL doesn't work either so it didn't reload. There are also no new messages in the error log or server log.