Skip to content
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

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

Open
yashwatwani opened this issue Jan 11, 2021 · 0 comments

Comments

@yashwatwani
Copy link

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 '+'")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant