Skip to content

server internal issue and wrong api path #3489

@D-V-W

Description

@D-V-W

Describe the bug
In some areas of my timesketch (Stories,Visualizations) when i enter i get

Image Image

there is data after i entered the console and saw what was failing it is the following path request /api/v1/sketches/3/aggregation/explore/
when i try manually it returns a error the shorter path of /api/v1/sketches/3/aggregation works
this is the error
timesketch.app/ERROR Exception on /api/v1/sketches/3/aggregation/explore/ [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/dist-packages/flask_restful/init.py", line 489, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/flask/views.py", line 110, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/dist-packages/flask_restful/init.py", line 604, in dispatch_request
resp = meth(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/timesketch/api/v1/resources/aggregation.py", line 518, in post
result_obj = aggregator.run(**aggregator_parameters)
File "/usr/local/lib/python3.10/dist-packages/timesketch/lib/aggregators/apex.py", line 453, in run
response = self.opensearch_aggregation(aggregation_query_spec)
File "/usr/local/lib/python3.10/dist-packages/timesketch/lib/aggregators/interface.py", line 383, in opensearch_aggregation
aggregation = self.opensearch.client.search(
File "/usr/local/lib/python3.10/dist-packages/opensearchpy/client/utils.py", line 180, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/opensearchpy/client/init.py", line 2359, in search
return self.transport.perform_request(
File "/usr/local/lib/python3.10/dist-packages/opensearchpy/transport.py", line 455, in perform_request
raise e
File "/usr/local/lib/python3.10/dist-packages/opensearchpy/transport.py", line 416, in perform_request
status, headers_response, data = connection.perform_request(
File "/usr/local/lib/python3.10/dist-packages/opensearchpy/connection/http_urllib3.py", line 308, in perform_request
self._raise_error(
File "/usr/local/lib/python3.10/dist-packages/opensearchpy/connection/base.py", line 315, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
opensearchpy.exceptions.RequestError: RequestError(400, 'x_content_parse_exception', 'No value specified for terms query')

also when there is a lot of data that creates a need for the page to slide there is a lot of white background instead of dark

Expected behavior
not to have any error massages

Desktop (please complete the following information):

  • OS: linux
  • Browser chrome
  • Version 20250708

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions