-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Need to update the code. Currently throwing this error.
cannot add a new index with id: urn:nasa:unity:uds_local_test:DEV1:SNDR_SNPP_ATMS_L1A_OUTPUT___2 for index: unity_collections
Traceback (most recent call last):
File "/var/task/cumulus_lambda_functions/lib/aws/es_middleware.py", line 114, in index_one
index_result = self._engine.index(index=index,
File "/var/task/elasticsearch-7.13.4-py3.9.egg/elasticsearch/client/utils.py", line 168, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/var/task/elasticsearch-7.13.4-py3.9.egg/elasticsearch/client/__init__.py", line 406, in index
return self.transport.perform_request(
File "/var/task/elasticsearch-7.13.4-py3.9.egg/elasticsearch/transport.py", line 415, in perform_request
raise e
File "/var/task/elasticsearch-7.13.4-py3.9.egg/elasticsearch/transport.py", line 381, in perform_request
status, headers_response, data = connection.perform_request(
File "/var/task/elasticsearch-7.13.4-py3.9.egg/elasticsearch/connection/http_requests.py", line 206, in perform_request
self._raise_error(response.status_code, raw_data)
File "/var/task/elasticsearch-7.13.4-py3.9.egg/elasticsearch/connection/base.py", line 330, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'failed to parse field [bbox] of type [geo_shape]')
For this source
"bbox": [
[
-180,
-90,
180,
90
]
]
Ref this: https://www.elastic.co/guide/en/elasticsearch/reference/7.10/geo-shape.html#_envelope
{
"my_id": "test3",
"bbox":{
"type": "envelope",
"coordinates": [[-180, 90], [180, -90]]
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working