hastic-zzz / hastic-grafana-app

Hastic data management server for labeling patterns and anomalies in Grafana
https://hastic.io
GNU General Public License v3.0
179 stars 18 forks source link

Error: Cannot read property 'status' of undefined #186

Closed sankerust closed 5 years ago

sankerust commented 5 years ago

Grafana 5.4.3 latest master of hastic-server and hastic-grafana-app (as of today)

When creating any analytic unit I get this error: image

Though browsers console output is this: image

react-dom.production.min.js:171 
TypeError: Cannot read property 'exports' of undefined
    at e.loadPlugin (DashboardGrid.tsx:166)
    at e.componentDidMount (DashboardGrid.tsx:208)
    at da (react-dom.production.min.js:213)
    at ca (react-dom.production.min.js:205)
    at la (react-dom.production.min.js:204)
    at Fo (react-dom.production.min.js:200)
    at Object.enqueueSetState (react-dom.production.min.js:130)
    at r.y.setState (react.production.min.js:13)
    at r.i.strategisedSetState (react-sizeme.js:308)
    at react-sizeme.js:336

io @ react-dom.production.min.js:171
react-dom.production.min.js:204 
Uncaught TypeError: Cannot read property 'exports' of undefined
    at e.loadPlugin (DashboardGrid.tsx:166)
    at e.componentDidMount (DashboardGrid.tsx:208)
    at da (react-dom.production.min.js:213)
    at ca (react-dom.production.min.js:205)
    at la (react-dom.production.min.js:204)
    at Fo (react-dom.production.min.js:200)
    at Object.enqueueSetState (react-dom.production.min.js:130)
    at r.y.setState (react.production.min.js:13)
    at r.i.strategisedSetState (react-sizeme.js:308)
    at react-sizeme.js:336

icn-graph-panel.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)

graph_ctrl.ts:753
Uncaught (in promise) Error: Trying to get datasource with NULL name
    at GraphCtrl.eval (graph_ctrl.ts:753)
    at step (graph_ctrl.ts:60)
    at Object.eval [as next] (graph_ctrl.ts:41)
    at eval (graph_ctrl.ts:35)
    at new Promise (<anonymous>)
    at __awaiter (graph_ctrl.ts:31)
    at GraphCtrl._getDatasourceByName (graph_ctrl.ts:747)
    at GraphCtrl.eval (graph_ctrl.ts:712)
    at step (graph_ctrl.ts:60)
    at Object.eval [as next] (graph_ctrl.ts:41)
sankerust commented 5 years ago

The problem was in the wrong GRAFANA_URL provided in hastic-server config.json.

rozetko commented 5 years ago

@sankerust can you please provide the wrong and the right url versions?

rozetko commented 4 years ago

might be related: https://github.com/hastic/hastic-server/issues/261