Skip to content

Misspelled endpoint for getting stored scripts #157

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

Closed
tomekred opened this issue Oct 15, 2024 · 4 comments
Closed

Misspelled endpoint for getting stored scripts #157

tomekred opened this issue Oct 15, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@tomekred
Copy link

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
@tomekred tomekred added the bug Something isn't working label Oct 15, 2024
@AntonShuvaev
Copy link
Owner

Thanks for reporting this. I will fix it in the next version.

@tomekred
Copy link
Author

tomekred commented Dec 2, 2024

Hello Anton,

Could you please share the possible timeline for the next release?

Thanks

@AntonShuvaev
Copy link
Owner

Hi @tomekred, Sorry for the delay! I’ve just released an update with the fix.

@tomekred
Copy link
Author

tomekred commented Dec 4, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants