parvez / snapshot

Report Generation for ElasticSearch Kibana / Grafana
54 stars 18 forks source link

Error in report with kibana 6.x #14

Open schmel opened 5 years ago

schmel commented 5 years ago
2019-04-12T08:31:11.392Z INFO Arguments: ["/opt/snapshot/helper_generate.js","/opt/snapshot/data/","dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs","pdf","30"]
2019-04-12T08:31:11.392Z INFO zoomFactor: 1
2019-04-12T08:31:11.392Z INFO paperSize: {"format":"A4","orientation":"portrait","margin":"0"}
2019-04-12T08:31:11.392Z INFO dashboard: dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs
2019-04-12T08:31:11.392Z INFO output: pdf
2019-04-12T08:31:11.392Z INFO waitTime: 30000ms
2019-04-12T08:31:11.392Z INFO URL: http://kibana:5601/app/kibana#/dashboard/dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs
2019-04-12T08:31:12.472Z INFO success
Invariant Violation: [React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.
See: http://formatjs.io/guides/runtime-environments/

  http://kibana:5601/dlls/vendors.bundle.dll.js:193 in bf
Invariant Violation: [React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.
See: http://formatjs.io/guides/runtime-environments/

  http://kibana:5601/bundles/commons.bundle.js:1 in add
2019-04-12T08:31:42.513Z INFO Successfully rendered URL: http://kibana:5601/app/kibana#/dashboard/dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs

How to fix it?

20190411174738 - Kibana.pdf

Darakilaru commented 5 years ago

I am getting " [React Intl] The Intl APIs must be available in the runtime, and do not appear to be built-in. An Intl polyfill should be loaded. See: http://formatjs.io/guides/runtimeenvironments/" in the downloaded pdf which snapshot got generated. I have also tested by adding "npm install intl --save" in dockerfile and "global.Intl = require('intl')" in my sever.js file. but still facing the issue please help....We got struck.