-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
If the dependancies array is populated the main page gives an internal server error. This was tested when internal server errors started occurring during extractor registration. When checking differences between extractors that worked and those that did not I changed one field at a time to see when the error stopped occurring. Verified by uploading a problem extractor info again, and only changing the dependencies entry.
2020-04-22 21:58:46,985 [MainThread ] ERROR : flask.app - Exception on /transformations/5ea0be16b40c2d000b8ae0a6 [GET] |
Traceback (most recent call last):
|
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app |
response = self.full_dispatch_request()
|
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request |
rv = self.handle_user_exception(e)
|
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception |
reraise(exc_type, exc_value, tb)
|
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise |
raise value
|
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request |
rv = self.dispatch_request()
|
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request |
return self.view_functions[rule.endpoint](**req.view_args) |
File "/app/transformations/pages.py", line 144, in view_transformation |
replaceEmptyString = replaceEmptyString)
|
File "/usr/local/lib/python3.7/site-packages/flask/templating.py", line 135, in render_template |
context, ctx.app)
|
File "/usr/local/lib/python3.7/site-packages/flask/templating.py", line 117, in _render |
rv = template.render(context)
|
File "/usr/local/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render |
return original_render(self, *args, **kwargs) |
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render |
return self.environment.handle_exception(exc_info, True) |
File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception |
reraise(exc_type, exc_value, tb)
|
File "/usr/local/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise |
raise value.with_traceback(tb)
|
File "/app/transformations/templates/pages/view_transformation.html", line 1, in top-level template code |
{% extends 'main.html' %} |
File "/app/transformations/templates/main.html", line 94, in top-level template code |
<div class="container" style="margin-top:20px;">{% block content %}{% endblock %}</div> |
File "/app/transformations/templates/pages/view_transformation.html", line 22, in block "content" |
{% if getIcon(software) %} |
File "/app/transformations/pages.py", line 19, in getIcon |
fs = gridFSIcon.find_one({"metadata.tool_id": str(tool["_id"])}) |
TypeError: 'NoneType' object is not subscriptable |
|