elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.6k stars 8.22k forks source link

[Dashboard] When there is no data for es|ql query for the time selected in the main timepicker in the dashboard , Kibana logs "kbn-ui-shared-deps-npm.dll.js:361 Uncaught TypeError: Cannot convert undefined or null to object" #184686

Open bhavyarm opened 5 months ago

bhavyarm commented 5 months ago

Kibana version: 8.14.0 BC7

Browser version: chrome latest

Browser OS version: OS X

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

Describe the bug: When user adds an es|ql panel to the dashboard and the ES|QL query returns no data for the time selected in the main timepicker on the dashboard, Kibana logs "kbn-ui-shared-deps-npm.dll.js:361 Uncaught TypeError: Cannot convert undefined or null to object" in the console.

Steps to reproduce:

  1. Create a dashboard with a panel which has data for a particular time period
  2. Click edit and add es|ql panel with a query which doesn't have data for that particular time period in the selected time in the main time picker
  3. Kibana logs the following error in the browser console:
kbn-ui-shared-deps-npm.dll.js:361 Uncaught 
TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.next (lens.chunk.3.js:3:485427)
    at e.next (kbn-ui-shared-deps-npm.dll.js:361:31334)
    at t._next (kbn-ui-shared-deps-npm.dll.js:361:30928)
    at t.next (kbn-ui-shared-deps-npm.dll.js:361:30508)
    at kbn-ui-shared-deps-npm.dll.js:351:64560
    at i (kbn-ui-shared-deps-npm.dll.js:361:239716)
    at t.next (kbn-ui-shared-deps-npm.dll.js:351:64347)
    at t.next (kbn-ui-shared-deps-npm.dll.js:361:386924)
    at embeddable_Embeddable.updateOutput (embeddable.plugin.js:1:18924)

Screenshot 2024-06-03 at 3 58 04 PM
elasticmachine commented 5 months ago

Pinging @elastic/kibana-presentation (Team:Presentation)

elasticmachine commented 5 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)

ThomThomson commented 5 months ago

Re-assigning this to the visualize team. @stratoula FYI

dej611 commented 4 months ago

I've tried to reproduce on current 8.15 version but cannot see the error. Can you still reproduce it @bhavyarm ?

stratoula commented 4 months ago

I can't reproduce it either fwiw