You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"error": {
"root_cause": [
{
"type": "invalid_index_name_exception",
"reason": "Invalid index name [_scripts], must not start with '_'.",
"index": "_scripts",
"index_uuid": "_na_"
}
],
"type": "invalid_index_name_exception",
"reason": "Invalid index name [_scripts], must not start with '_'.",
"index": "_scripts",
"index_uuid": "_na_"
},
"status": 400
}
Instead, we have to use GET _cluster/state/metadata?filter_path=metadata.stored_scripts to get the script. The document should mention this
Version: List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
The text was updated successfully, but these errors were encountered:
@prabhupant: I think the example assumes that a script named my-first-script exists within the cluster. I'll update the endpoint at the top to use a generic , which should be replaced with a script that exists in your cluster.
What do you want to do?
Tell us about your request. Provide a summary of the request.
If we look at the scripts API here https://opensearch.org/docs/latest/api-reference/script-apis/get-stored-script/, it says we can use
GET _scripts/my-first-script
to retrieve a script but this throws an errorInstead, we have to use
GET _cluster/state/metadata?filter_path=metadata.stored_scripts
to get the script. The document should mention thisVersion: List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.
The text was updated successfully, but these errors were encountered: