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

Disable webhook: TypeError: Cannot read property 'toString' of undefined #415

amper43 opened this Issue Feb 13, 2019 · 0 comments


None yet
1 participant
Copy link

amper43 commented Feb 13, 2019



Exception has occurred: TypeError
TypeError: Cannot read property 'toString' of undefined
    at ElasticsearchMetric.getQuery (/home/jo/extra/hastic-server/server/node_modules/grafana-datasource-kit/lib/metrics/elasticsearch_metric.js:20:40)
    at Object.<anonymous> (/home/jo/extra/hastic-server/server/node_modules/grafana-datasource-kit/lib/grafana_service.js:27:44)
    at (<anonymous>)
    at /home/jo/extra/hastic-server/server/node_modules/grafana-datasource-kit/lib/grafana_service.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/jo/extra/hastic-server/server/node_modules/grafana-datasource-kit/lib/grafana_service.js:3:12)
    at Object.queryByMetric (/home/jo/extra/hastic-server/server/node_modules/grafana-datasource-kit/lib/grafana_service.js:20:12)
    at DataPuller.<anonymous> (/home/jo/extra/hastic-server/server/src/services/data_puller.ts:46:16)
    at (<anonymous>)
    at /home/jo/extra/hastic-server/server/dist/server-dev.js:2291:71


data_puller.ts: getDataGenerator

Args and locals

  • now: 1550071676574
  • time: undefined
  • this._unitTimes hasn't <>

Steps to reproduce

  • disable enabled webhook

@amper43 amper43 self-assigned this Feb 13, 2019

@rozetko rozetko closed this in #438 Feb 26, 2019

rozetko added a commit that referenced this issue Feb 26, 2019

Minor server fixes (#438)
* Disable webhook: TypeError: Cannot read property 'toString' of undefined #415
* UnhandledPromiseRejectionWarning #419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.