opendistro-for-elasticsearch / sample-code

👋 Welcome to the Open Distro sample-code area. Share your great ideas and code samples with the Open Distro Community.
https://github.com/opendistro-for-elasticsearch/sample-code
Apache License 2.0
278 stars 78 forks source link

Timelion poor syntax error message #241

Closed okvittem closed 3 years ago

okvittem commented 3 years ago

Would you say from the Timelion program

.es('*')

is is easy to understand what the error is when the error message is :

Timelion request error: undefined SyntaxError: {"type":"incompleteFunction","function":"es","location":{"min":0,"max":3},"text":".es"}

This is Kibana 1.12.0 and the its in a Dasboard with integrated Timelion.

The syntax error is that single quotes is used instead of double ones. This is a change from the previous not so integrated version of timelion which still support using single quotes by the way. Took me some time to figure out and fix my scripts after the upgrade.

jcgraybill commented 3 years ago

Hi, if you're still looking for help with this, go ahead and post a question to the Open Distro forums. Thanks!