elasticsearch/elasticsearch — Issue #1572: Deleting a missing index returns invalid json
Author: skade
Created: 2011-12-27 15:11:28+00:00
State: open

Using a fresh and empty 18.6 elasticsearch, this:

curl -XDELETE localhost:9200 http://localhost:9200/test/

returns

{"ok":true,"acknowledged":true}{"error":"IndexMissingException[[test] missing]","status":404}

Which is clearly invalid json.

I also see this when using older versions (oldest: 17.2).