Dashboard iframe triggers error


(Manoj 13) #1

Hi,

We are trying to use Kibana for generating visualisations and using their iframe on to our html pages.But recently when we are getting this error:

Oops!
Looks like something went wrong. Refreshing may do the trick.

Go back or clear your session

** Fatal Error**
Uncaught TypeError: Cannot read property 'length' of undefined

Can you help me with this?


(Elvar) #2

Did you try using the browser developer tools to monitor what is failing?

Also, be aware that if the user can access kibana and view data in kibana he can access the whole elasticsearch cluster with http://kibanaurl/elasticsearch/


(Manoj 13) #3

This is what the debugging console shows ,i couldn't figure this out


(Felix Stürmer) #4

Hi @Manoj_13,

the errors visible on the screenshots look rather like follow-up errors. Are there any other exceptions being printed? And which Kibana version are you using?


(Manoj 13) #5

Hi @weltenwort,

No other exceptions are shown up on the debugging console, I am using Kibana 5.0.1 .


(Felix Stürmer) #6

Does this happen with only one particular dashboard, with multiple or all of them? Do the dashboards render correctly when accessed in Kibana directly?


(Manoj 13) #7

I have a set of dashboards , i place them in different tabs ,once kibana loads up the present tab shows right data with no errors, but if i move on to rest of the tabs they trigger this error.

All dashboards work fine when accessed in kibana directly.


(Felix Stürmer) #8

I suspect that you are experiencing the same effect described here: https://github.com/elastic/kibana/issues/5810

It seems that placing iframes in elements hidden via javascript is very prone to errors in some browsers. Please make sure that the javascript code and styles that manage your tabs do not initialize their size to 0. Maybe lazily putting the iframes into the tabs when they are activated can work around this.


(Manoj 13) #9

Thanks I found the Lazy Load solution quite effective while loading iFrames.


(system) #10

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.