Forums

Cannot Reload App "Your webapp took a long time to reload. It probably reloaded, but we were unable to check it."

Good evening! I have the same problem with my web app... I suppose something went wrong, but I have no idea what exactly. Could someone please help me?

Does the web app work?

I am facing same problem, please help!

@Sameeraw it looks from our side like your web app reloaded, but you need to look into your error log to se what is broken inside your web app..

Its a flask app, where I have two def() and error is pointing to one of them def home(), not sure why? because these are pretty standard for flask web deployments. Not sure where the error is , I have just pasted relevant portion of code where I got error: @app.route('/') def home(): return render_template('search.html')

Many thanks for help.

What is the latest error at the end of your error log?

.

2022-02-09 14:14:05,108: Error running WSGI application
2022-02-09 14:14:05,109:   File "/home/Sameeraw/mysite/app_BERT.py", line 40
2022-02-09 14:14:05,109: 
2022-02-09 14:14:05,109:     def home():
2022-02-09 14:14:05,109: 
2022-02-09 14:14:05,109:     ^
2022-02-09 14:14:05,110: 
2022-02-09 14:14:05,110: SyntaxError: invalid syntax
2022-02-09 14:14:05,110:   File "/var/www/sameeraw_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-02-09 14:14:05,110:     from app_BERT import app as application
2022-02-09 14:14:05,110: ***************************************************
2022-02-09 14:14:05,110: If you're seeing an import error and don't know why,
2022-02-09 14:14:05,110: we have a dedicated help page to help you debug: 
2022-02-09 14:14:05,110: https://help.pythonanywhere.com/pages/DebuggingImportError/
2022-02-09 14:14:05,110: ***************************************************
2022-02-09 14:42:00,421: OSError: write error
2022-02-09 15:04:52,711: OSError: write error

I hope its legible

I believe we answered you over email -- let's continue our conversation there.