No handler found for uri [/_all/settings] and method [PUT]

Hi,

As it is mentioned on the elasticsearch documentation "https://www.elastic.co/guide/en/elasticsearch/reference/5.2/delayed-allocation.html#_monitoring_delayed_unassigned_shards".
We wanted to modify the delayed_timeout to reboot one of node for maintenance reason.
But when we launched the curl command

curl -XPUT 'localhost:9200/_all/_settings?pretty' -H 'Content-Type: application/json' -d'
{
"settings": {
"index.unassigned.node_left.delayed_timeout": "5m"
}
}
'
The answer was "No handler found for uri [/_all/settings] and method [PUT]"

Thanks for your help

Hi @valf,

this seems to be a typo somewhere? The error message says: "No handler found for uri [/all/settings] and method [PUT]" (note it says settings (without an underscore) but not _settings in the error message). Can you please double-check that you've included the ""?

When I try your statement against an empty Elasticsearch node (version 5.2.1) I get the following response:

{
   "error": {
      "root_cause": [
         {
            "type": "index_not_found_exception",
            "reason": "no such index",
            "resource.type": "index_expression",
            "resource.id": "_all"
         }
      ],
      "type": "index_not_found_exception",
      "reason": "no such index",
      "resource.type": "index_expression",
      "resource.id": "_all"
   },
   "status": 404
}

If I create an index and then issue the call, it returns fine.

Daniel

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