Watcher Error (Runtime error) | Elasticsearch

Hi,

I am getting an error message, however when I check and read through my code, it should be returning as it should be.

// Output

Any help is greatly appreciated to help me identify where I went wrong
Thanks!
Nhung

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.

Yes, I should have

Thanks as always for your help :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.