promviz icon indicating copy to clipboard operation
promviz copied to clipboard

Cannot read property 'serverUpdateTime' of null

Open cmarquezrusso opened this issue 6 years ago • 4 comments

How to reproduce:

Preconditions: Helm and Prometheus are installed into the cluster

Steps:

helm install --name promviz ./helm/promviz helm install --name promviz-front ./helm/promviz-front

Wait for the pods to be ready kubectl port-forward promviz-front-promviz-front-6bd8c9578f-88488 -n default 8080:8080 Open localhost:8080 in the browser

Expected result: promviz dashboard with data Current result: promviz dashboard stuck on loading. Error message in js console is:

Uncaught TypeError: Cannot read property 'serverUpdateTime' of null
    at TrafficStore.updateTraffic (trafficStore.js:133)
    at Object.ID_2 (trafficStore.js:33)
    at AppDispatcher._invokeCallback (Dispatcher.js:198)
    at AppDispatcher.dispatch (Dispatcher.js:174)
    at AppDispatcher.handleAction (appDispatcher.js:7)
    at Object.updateTraffic (trafficActions.js:8)
    at trafficFlow.jsx:162
    at Request.callback (client.js:614)
    at Request.<anonymous> (client.js:435)
    at Request.Emitter.emit (index.js:133)

cmarquezrusso avatar May 21 '18 14:05 cmarquezrusso

Found the solution: You should give promviz address in configuration instead of promviz-front.

Istalacar avatar Jul 27 '18 11:07 Istalacar

@cristian04 Did you found the solution for this? I'm having the same error here.

rodrigopandini avatar Sep 17 '18 00:09 rodrigopandini

Thanks @Istalacar. I found now. You need place the the url of promviz in helm/promviz-front/values.yaml: Like this:

env:
  updateURL: "http://localhost:9091/graph"

rodrigopandini avatar Sep 17 '18 14:09 rodrigopandini

@rodrigopandini I've tried your approach and it didn't work, still unable to connect:

screen shot 2019-01-17 at 2 23 33 pm

Did you encounter this error too? Thanks!

markmssd avatar Jan 17 '19 19:01 markmssd