You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this error in a script to automatically delete old entries. When no entries have to be deleted the script tried to do a bulk request with an empty array as body.
I agree, the error is not very clear about the actual problem and it is really unclear how to fix it. This error is not generated by elasticsearch-js though, it is sent from elasticsearch and provided to the user directly.
I suggest asking elasticsearch to provide a more informative error message.
I came across this error in a script to automatically delete old entries. When no entries have to be deleted the script tried to do a bulk request with an empty array as body.
I created this script to show the error
When running this script you get the following console output
I run
The text was updated successfully, but these errors were encountered: