Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

elasticsearch7.exceptions.RequestError: RequestError(400, 'invalid_index_name_exception', "Invalid index name [_watcher], must not start with '_', '-', or '+'") #351

@yashwatwani

Description

@yashwatwani

While running "python run_test.py --test_file monitoring_cluster_health/tests/test1.json"

I am getting this error

Unable to delete current dataset
C:\Users\yashw\AppData\Local\Continuum\anaconda3\envs\elkex\lib\site-packages\elasticsearch7\connection\base.py:193: ElasticsearchDeprecationWarning: [types removal] Specifying types in document index requests is deprecated, use the typeless endpoints instead (/{index}/_doc/{id}, /{index}/_doc, or /{index}/_create/{id}).
warnings.warn(message, category=ElasticsearchDeprecationWarning)
Traceback (most recent call last):
File "run_test.py", line 61, in
es.watcher.put_watch(id=test["watch_name"],body=watch)
File "C:\Users\yashw\AppData\Local\Continuum\anaconda3\envs\elkex\lib\site-packages\elasticsearch7\client\utils.py", line 152, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "C:\Users\yashw\AppData\Local\Continuum\anaconda3\envs\elkex\lib\site-packages\elasticsearch7\client\watcher.py", line 160, in put_watch
body=body,
File "C:\Users\yashw\AppData\Local\Continuum\anaconda3\envs\elkex\lib\site-packages\elasticsearch7\transport.py", line 392, in perform_request
raise e
File "C:\Users\yashw\AppData\Local\Continuum\anaconda3\envs\elkex\lib\site-packages\elasticsearch7\transport.py", line 365, in perform_request
timeout=timeout,
File "C:\Users\yashw\AppData\Local\Continuum\anaconda3\envs\elkex\lib\site-packages\elasticsearch7\connection\http_urllib3.py", line 269, in perform_request
self._raise_error(response.status, raw_data)
File "C:\Users\yashw\AppData\Local\Continuum\anaconda3\envs\elkex\lib\site-packages\elasticsearch7\connection\base.py", line 316, in _raise_error
status_code, error_message, additional_info
elasticsearch7.exceptions.RequestError: RequestError(400, 'invalid_index_name_exception', "Invalid index name [watcher], must not start with '', '-', or '+'")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions