CorpGlory / grafana-data-exporter

Server for fetching data from Grafana datasources
39 stars 6 forks source link

Receiving "Cannot read property 'queries' of undefined" while using PostgreSQL dashboard #23

Closed Karan96Kaushik closed 3 years ago

Karan96Kaushik commented 4 years ago

(node:9864) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'queries' of undefined at PostgresMetric.getQuery (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:45898:44) at Object. (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28160:44) at Generator.next () at /home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28113:71 at new Promise () at __awaiter (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28109:12) at Object.queryByMetric (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:28147:12) at Target. (/home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:45543:62) at Generator.next () at /home/karansgs/Documents/GRAFANA/grafana-data-exporter-0.3.6/dist/server.js:45482:71 (node:9864) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)

jonyrock commented 4 years ago

@Karan96Kaushik can I ask you to show the query you are running in grafana? (datasource tab)

rozetko commented 3 years ago

fixed in 0.4.0 version