From 813c50d36d93975efeca21d8b1bbe366dc0e415e Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 19 Jan 2023 20:01:05 +0300 Subject: [PATCH] fix grafana errors not caught by tsdb-kit --- src/services/query_service/grafana.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/query_service/grafana.ts b/src/services/query_service/grafana.ts index 260e79b..4f6d868 100644 --- a/src/services/query_service/grafana.ts +++ b/src/services/query_service/grafana.ts @@ -29,7 +29,8 @@ export class GrafanaQueryService extends QueryService { _.defaults(axiosQuery, query.schema); try { - return axios(axiosQuery); + const resp = await axios(axiosQuery); + return resp; } catch (e) { // TODO: seems like this error handler can be used for both Grafana and Direct queries const msg = `TSDB-kit: fail while request data: ${e.message}`;