The script runs fine when I run the test.
But in Discover I get [script_exception] runtime error. If I remove the above it´s works fine.
Full error message:
Error: Bad Request
at Fetch._callee3$ (https://elk-kibana01/31997/bundles/commons.bundle.js:3:1287438)
at l (https://elk-kibana01/31997/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969217)
at Generator._invoke (https://elk-kibana01/31997/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:968970)
at Generator.forEach.e.<computed> [as next] (https://elk-kibana01/31997/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969574)
at asyncGeneratorStep (https://elk-kibana01/31997/bundles/commons.bundle.js:3:1280961)
at _next (https://elk-kibana01/31997/bundles/commons.bundle.js:3:1281272)
This morning it was working for some hours.
I think I need to add a NULL check of DOC['comment']. How can I do that? Is it possible to do that in the same IF-statement?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.