Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect GET path in tasks.asciidoc #49494

Merged
merged 1 commit into from
Nov 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/reference/cat/tasks.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ similar to the <<tasks,task management>> API.
[[cat-tasks-api-request]]
==== {api-request-title}

`GET /_cat/_tasks/<task_id>`
`GET /_cat/tasks/<task_id>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried this on 7.4.2 and get something along the lines of

#! Deprecation: [types removal] Specifying types in document get requests is deprecated, use the /{index}/_doc/{id} endpoint instead.
{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [_cat]",
        "resource.type" : "index_expression",
        "resource.id" : "_cat",
        "index_uuid" : "_na_",
        "index" : "_cat"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [_cat]",
    "resource.type" : "index_expression",
    "resource.id" : "_cat",
    "index_uuid" : "_na_",
    "index" : "_cat"
  },
  "status" : 404
}

which to me looks like the request is hitting the wrong endpoint (trying to index a document).
If this is the case, this might either be a bug we should file, or if getting tasks by id via the _cat API isn't supposed to be working we should remove this from the docs. Maybe @jrodewig or @imotov have an idea
how to proceed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbuescher I'm seeing the same error on my end. I'll remove individual task retrieval from the docs. Thanks for raising this!


`GET /_cat/_tasks`
`GET /_cat/tasks`


[[cat-tasks-api-desc]]
Expand Down