Actions
Bug #7565
closedTimeline falls flat on certain query
Start date:
03/02/2022
Due date:
% Done:
0%
Estimated time:
To be discussed:
Description
And seems some contract again does not meet expectations (wrong number of args).
Traceback:
Message type: ERROR Location: /var/mentat/venv/lib/python3.7/site-packages/vial/app.py:168 Module: app Function: log_exception Time: 2022-03-02 08:37:37,521 Message: Exception on /timeline/search?dt_from=2022-02-23+08%3A00%3A00&dt_to=2022-03-02+08%3A00%3A00&source_addrs=&source_ports=&detectors=cz.cesnet.au1.warden_filer&limit=100&submit=Hledat [GET] Traceback (most recent call last): File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/var/mentat/venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise raise value File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/var/mentat/venv/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/var/mentat/venv/lib/python3.7/site-packages/flask_login/utils.py", line 272, in decorated_view return func(*args, **kwargs) File "/var/mentat/venv/lib/python3.7/site-packages/flask/views.py", line 89, in view return self.dispatch_request(*args, **kwargs) File "/var/mentat/venv/lib/python3.7/site-packages/vial/view/__init__.py", line 1040, in dispatch_request self.custom_search(form_data) File "/var/mentat/venv/lib/python3.7/site-packages/hawat/blueprints/timeline/__init__.py", line 218, in custom_search False File "/var/mentat/venv/lib/python3.7/site-packages/hawat/blueprints/timeline/__init__.py", line 186, in _search_events_aggr dbtoplist = enable_toplist File "/var/mentat/venv/lib/python3.7/site-packages/mentat/services/eventstorage.py", line 947, in wrapped_f return func(other_self, *args, **kwargs) File "/var/mentat/venv/lib/python3.7/site-packages/mentat/services/eventstorage.py", line 983, in exc_handle_wrapper return func(self, *args, **kwargs) File "/var/mentat/venv/lib/python3.7/site-packages/mentat/services/eventstorage.py", line 1381, in search_events_aggr result = self.cursor.search_events_aggr(parameters, qtype = qtype, qname = qname, dbtoplist = dbtoplist) File "/var/mentat/venv/lib/python3.7/site-packages/mentat/services/eventstorage.py", line 715, in search_events_aggr return self.cursor.fetchall() File "/var/mentat/venv/lib/python3.7/site-packages/psycopg2/extras.py", line 349, in fetchall return list(map(nt._make, ts)) File "/usr/lib/python3.7/collections/__init__.py", line 407, in _make raise TypeError(f'Expected {num_fields} arguments, got {len(result)}') TypeError: Expected 3 arguments, got 2
Related issues
Actions