-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Currently, a lot of errors are catched as an "Already exists", event completely different problem:
opensearchpy.exceptions.RequestError: RequestError(400, 'illegal_argument_exception', 'enable_position_increments is not supported anymore. Please fix your analysis chain')
Creating index 'patient'... Error (already exists)
exiting..
The exception handling code here :
django-opensearch-dsl/django_opensearch_dsl/management/commands/opensearch.py
Lines 126 to 132 in b5fc53d
| except opensearchpy.exceptions.RequestError: | |
| if verbosity or not ignore_error: | |
| self.stderr.write( | |
| f"{pp} index '{index._name}'... {self.style.ERROR('Error (already exists)')}") # noqa | |
| if not ignore_error: | |
| self.stderr.write("exiting...") | |
| exit(1) |
must be modified to better report any error.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers