CVE-Search-Docker
CVE-Search-Docker copied to clipboard
Fatal ajax error on main page
When connecting to the main page, the error "DataTables warning: table id=CVEs - Ajax error. For more information about this error, please see http://datatables.net/tn/7" is returned.
Steps to reproduce the behavior:
- Simply check the web page of CVE-Search for the latest version
- A pop-up appears ; and CVE raws are empty
Specifications from my host:
- CPU architecture : x86_64
- OS : Debian
By monitoring the main container's logs, it seems to be an error related to flask :
2024-07-08 15:30:04,828 - web.run - ERROR - Exception on /fetch_cve_data [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/site-packages/flask_restx/api.py", line 674, in error_router
return original_handler(e)
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/app/web/../web/home/views.py", line 383, in fetch_cvedata
ssd = ServerSideDataTable(request=request, backend=app.dbh.connection)
File "/app/web/../web/helpers/server_side_datatables.py", line 40, in init
self._pre_fetch_processing()
File "/app/web/../web/helpers/server_side_datatables.py", line 80, in pre_fetch_processing
self.total = self.backend.count(self.request_values["retrieve"])
File "/app/web/../lib/DatabasePlugins/mongodb.py", line 81, in count
return getattr(self, "store{}".format(retrieve)).count_documents(
AttributeError: 'MongoPlugin' object has no attribute 'store_cves'