chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Unresponsive after creating a Dashboard cell

Open andipabst opened this issue 9 years ago • 2 comments

Steps to reproduce:

  1. On any Dashboard create a new cell and add a graph
  2. Before typing any query, go to Display Options and change them to SingleStat image
  3. Clicking on the Queries tab doesn't do anything and if you close it via clicking the green tick, there is an error shown: "Can't communicate with the server"
  4. If you open the cell again, you can't do anything but refresh the page and delete the cell afterwards

I installed Chronograf via apt on a Ubuntu 17.04 machine. This is the output of chronograf -v: 2017/09/11 10:38:38 Chronograf 1.3.7.0 (git: a9358a3dcbc1e74533a888435719d440884d806e)

If there is any further information I can assist you with, I am happy to help!

andipabst avatar Sep 11 '17 09:09 andipabst

Hi @andipabst, thanks for writing in and reporting this! I was able to repro it just now. Looks like you discovered a regression, as this was previously fixed at https://github.com/influxdata/chronograf/pull/1484.

We'll take a look, though we welcome community PRs if you'd like to give it a shot in the meantime. It looks like the console is reporting an error of Uncaught TypeError: Cannot read property 'host' of undefined at AutoRefresh.js:124, so I imagine we just need to be using a _.get where we are currently trying to directly access a property, in AutoRefresh.js.

jaredscheib avatar Sep 11 '17 17:09 jaredscheib

• Create dashboard • Create cell • Add graph • Display options • Single stat • Queries • Add query • Display options - gives the following error in console

index.js:143 Uncaught TypeError: Cannot read property 'field' of undefined
    at buildDefaultYLabel (index.js:143)
    at DisplayOptions.setDefaultLabels (DisplayOptions.js:78)
    at new DisplayOptions (DisplayOptions.js:60)
    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (ReactCompositeComponent.js:298)
    at ReactCompositeComponentWrapper._constructComponent (ReactCompositeComponent.js:285)
    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:188)
    at Object.mountComponent (ReactReconciler.js:46)
    at Object.updateChildren (ReactChildReconciler.js:121)
    at ReactDOMComponent._reconcilerUpdateChildren (ReactMultiChild.js:213)
    at ReactDOMComponent._updateChildren (ReactMultiChild.js:312)

nhaugo avatar Sep 27 '17 22:09 nhaugo