Watcher Error (Runtime error) | Elasticsearch

Please take the time to read the end of the response you supplied. Especially the exception part. There is a so called NullPointerException mentioned for ctx.payload.aggregations.nodes - as you can see in result.payload, your search did not return any hits, so there are also no aggregation fields in the search response.

You need to cater for this case in the condition.