Error NOT_FOUND(404) during delete

Hello,

I have following python script where delete call sometimes crashes with error 404 (NOT FOUND), while the entry really exists and it is deleted in the next delete call.

What can I do to solve this?

query_body = {
"sort" : [
{ "_uid" : { "order" : "asc" } }
]
}
r = es.search(index="my_index", body=query_body, size=1)

the_id = r['hits'][ 'hits'][0]['_id']

d = es.delete(index="my_index", doc_type="my_doc_type", id=the_id, params={ } )

Regards,
Raul

1 Like

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