I keep getting the following: 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. Don't know what to do.
I wrote a code that parses several json responses from different API and I want to put it within PythonAnywhere API but I don't get the reason of receiving this error.
Here's my error log:
2022-05-14 16:00:20,885: Error running WSGI application
2022-05-14 16:00:20,890: ModuleNotFoundError: No module named 'benedict'
2022-05-14 16:00:20,890: File "/var/www/kpmg_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-05-14 16:00:20,890: from flask_app import app as application # noqa
2022-05-14 16:00:20,890:
2022-05-14 16:00:20,890: File "/home/KPMG/mysite/flask_app.py", line 4, in <module>
2022-05-14 16:00:20,890: from benedict import benedict
2022-05-14 16:00:20,890: ***************************************************
2022-05-14 16:00:20,891: If you're seeing an import error and don't know why,
2022-05-14 16:00:20,891: we have a dedicated help page to help you debug:
2022-05-14 16:00:20,891: https://help.pythonanywhere.com/pages/DebuggingImportError/
2022-05-14 16:00:20,891: ***************************************************
2022-05-14 16:01:14,387: Error running WSGI application
2022-05-14 16:01:14,389: ModuleNotFoundError: No module named 'benedict'
2022-05-14 16:01:14,389: File "/var/www/kpmg_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-05-14 16:01:14,389: from flask_app import app as application # noqa
2022-05-14 16:01:14,389:
2022-05-14 16:01:14,389: File "/home/KPMG/mysite/flask_app.py", line 4, in <module>
2022-05-14 16:01:14,389: from benedict import benedict
2022-05-14 16:01:14,390: ***************************************************
2022-05-14 16:01:14,390: If you're seeing an import error and don't know why,
2022-05-14 16:01:14,390: we have a dedicated help page to help you debug:
2022-05-14 16:01:14,390: https://help.pythonanywhere.com/pages/DebuggingImportError/
2022-05-14 16:01:14,390: ***************************************************
2022-05-14 16:01:45,656: Error running WSGI application
2022-05-14 16:01:45,658: ModuleNotFoundError: No module named 'benedict'
2022-05-14 16:01:45,658: File "/var/www/kpmg_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-05-14 16:01:45,658: from flask_app import app as application # noqa
2022-05-14 16:01:45,658:
2022-05-14 16:01:45,658: File "/home/KPMG/mysite/flask_app.py", line 4, in <module>
2022-05-14 16:01:45,659: from benedict import benedict
2022-05-14 16:01:45,659: ***************************************************
2022-05-14 16:01:45,659: If you're seeing an import error and don't know why,
2022-05-14 16:01:45,659: we have a dedicated help page to help you debug:
2022-05-14 16:01:45,660: https://help.pythonanywhere.com/pages/DebuggingImportError/
2022-05-14 16:01:45,660: ***************************************************
2022-05-14 16:02:25,344: Error running WSGI application
2022-05-14 16:02:25,346: ModuleNotFoundError: No module named 'benedict'
2022-05-14 16:02:25,346: File "/var/www/kpmg_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-05-14 16:02:25,346: from flask_app import app as application # noqa
2022-05-14 16:02:25,347:
2022-05-14 16:02:25,347: File "/home/KPMG/mysite/flask_app.py", line 4, in <module>
2022-05-14 16:02:25,347: from benedict import benedict
2022-05-14 16:02:25,348: ***************************************************
2022-05-14 16:02:25,348: If you're seeing an import error and don't know why,
2022-05-14 16:02:25,348: we have a dedicated help page to help you debug:
2022-05-14 16:02:25,348: https://help.pythonanywhere.com/pages/DebuggingImportError/
2022-05-14 16:02:25,348: ***************************************************
2022-05-14 16:02:26,200: Error running WSGI application
2022-05-14 16:02:26,201: ModuleNotFoundError: No module named 'benedict'
2022-05-14 16:02:26,201: File "/var/www/kpmg_pythonanywhere_com_wsgi.py", line 16, in <module>
2022-05-14 16:02:26,201: from flask_app import app as application # noqa
2022-05-14 16:02:26,201:
2022-05-14 16:02:26,202: File "/home/KPMG/mysite/flask_app.py", line 4, in <module>
2022-05-14 16:02:26,202: from benedict import benedict
2022-05-14 16:02:26,202: ***************************************************
2022-05-14 16:02:26,202: If you're seeing an import error and don't know why,
2022-05-14 16:02:26,202: we have a dedicated help page to help you debug:
2022-05-14 16:02:26,203: https://help.pythonanywhere.com/pages/DebuggingImportError/
2022-05-14 16:02:26,203: ***************************************************
2022-05-14 16:20:19,886: Exception on / [GET]
I erased the library benedict in my code, so it can't be the reason.
I can also add the here my code if it's needed for help.