Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TSVB] request with Filter Ratio failed, ES response is Unknown key for a START_OBJECT in [[object Object]] #82067

Closed
tsullivan opened this issue Oct 29, 2020 · 4 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@tsullivan
Copy link
Member

tsullivan commented Oct 29, 2020

Kibana version: 7.9.1

Elasticsearch version: 7.9.1

Server OS version: Linux

Browser version: Chrome 86

Browser OS version: Linux

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug:
TSVB panel fails for some mysterious reason. All network requests in developer tools show 200 responses, but an ES error is buried inside. No other indication of the error shows in the browser.

Steps to reproduce:

  1. Create a line chart on data in the Time Series panel
  2. Switch to Table panel and select a field to group by
  3. Add a column
    • Aggregation: Filter Ratio
    • Metric: Sum
    • Field: some numeric field

Expected behavior:
Should show the table and column with the filter ratios

What actually happens is the panel becomes this:
image

The screen shows no feedback to the user about the failed request.

Network Inspector shows all requests receive a 200 response. Here is a sample response:

{"type":"table","uiRestrictions":{"whiteListedMetrics":{"*":true},"whiteListedGroupByFields":{"*":true},"whiteListedTimerangeModes":{"*":true}},"61ca57f0-469d-11e7-af02-69e470af7417":{"id":"61ca57f0-469d-11e7-af02-69e470af7417","statusCode":400,"error":{"error":{"root_cause":[{"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [[object Object]].","line":1,"col":1266}],"type":"parsing_exception","reason":"Unknown key for a START_OBJECT in [[object Object]].","line":1,"col":1266},"status":400},"series":[]}}

The part about [object Object] looks as though some data is not serialized properly for the query to ES.

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@tsullivan tsullivan added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Oct 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@tsullivan tsullivan added the bug Fixes for quality problems that affect the customer experience label Oct 29, 2020
@timroes timroes added the Feature:TSVB TSVB (Time Series Visual Builder) label Nov 4, 2020
@RicoNijeboer
Copy link

I am getting the same error on 7.9.3

Kibana version: 7.9.3

Elasticsearch version: 7.9.3

Server: Elastic cloud

@DianaDerevyankina
Copy link
Contributor

Seems that this issue has already been reported earlier in #65849 and was fixed by #77272 that's why it's not reproducible since 7.10.
As it's still relevant for 7.9, @timroes @stratoula I'd like to know if we need to backport.

@stratoula
Copy link
Contributor

As we don't have any 7.9.x release planned and the bug is fixed on 7.10 I think we should not backport it. For this reason, I will close this issue cc @dziyanadzeraviankina

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants