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

Cannot read property 'serverUpdateTime' of null #14

Open
cmarquezrusso opened this issue May 21, 2018 · 4 comments
Open

Cannot read property 'serverUpdateTime' of null #14

cmarquezrusso opened this issue May 21, 2018 · 4 comments

Comments

@cmarquezrusso
Copy link

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)
@Istalacar
Copy link

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

@rodrigopandini
Copy link

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

@rodrigopandini
Copy link

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"

@markmssd
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants