AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

Invalid argument exception with OpenSearch Serverless #155

Open CermakM opened 1 day ago

CermakM commented 1 day ago

Describe the bug When using the plugin in Goland with AWS OpenSearch Serverless, while the connection is working, I get the following error from the inspection:

org.elasticsearch4idea.ey: GET <opensearch endpoint>/_cat/indices/*?format=json&expand_wildcards=open 400 {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/_cat/indices/*] contains unrecognized parameter: [expand_wildcards]"}],"type":"illegal_argument_exception","reason":"request [/_cat/indices/*] contains unrecognized parameter: [expand_wildcards]"},"status":400}

This makes it impossible to use the plugin, since I can't even execute es request.

Steps to reproduce Install the Plugin and connect to an OpenSearch Serverless endpoint.

Expected behavior No error occurs.

Environment information:

AntonShuvaev commented 20 hours ago

Thanks for reporting the issue. I'll fix it in the next version.