Skip to content

Misspelled endpoint for getting stored scripts #157

Closed
@tomekred

Description

@tomekred

Describe the bug
Plugin suggests GET /_script/<script-id> and the correct endpoint is GET /_scripts/<script-id> - notice the 's' at the end. The result is error 405 Incorrect HTTP method for uri. Appending the 's' at the end of a phrase '_script' along with script_id returns 200 properly.

Steps to reproduce
Begin writing "GET /_script", context menu will show up with said endpoint.

Expected behavior
Should point to GET /_scripts/<script-id> .

Environment information:

  • OS: macOS 14.6.1 (23G93)
  • IDE version: PyCharm 2024.2.3 (Professional Edition); Build #PY-242.23339.19, built on September 25, 2024
  • plugin version: 2024.1.4-242
  • Elasticsearch or OpenSearch version: 8.14.3
    get_stored_script

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions