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

Content Parse Exception at Similarity Search due to "model_id doesn't support values of type: VALUE_NULL" #57

Open
DJ2695 opened this issue Dec 6, 2024 · 2 comments

Comments

@DJ2695
Copy link

DJ2695 commented Dec 6, 2024

Hey there,
I recently got back to a ElasticDB relying LLM project and got hit with following error when running a query (although i have not updated dependencies):

BadRequestError: BadRequestError(400, 'x_content_parse_exception', 
"[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL")

Executing script where it fails:

from langchain_elasticsearch import ElasticsearchStore

# Instantiation
class ElasticVectorStore(ElasticsearchStore):

    def __init__(
        self, session_id: str, index: str, es_url: str, es_user: str, es_pw: str
    ):
        super().__init__(
            es_url=es_url, index_name=index, es_user=es_user, es_password=es_pw
        )
        self.session_id: str = session_id
        self.index = index
        self.embed: Callable[[str], list[float]] = EmbeddingModels.ADA_2.embed_query

    @classmethod
    def from_index(cls, session_id: str, index: str) -> "ElasticVectorStore":
        es_url = os.getenv("ELASTIC_API_BASE")
        es_user = os.getenv("ELASTIC_USER")
        es_pw = os.getenv("ELASTIC_PW")

        store = ElasticVectorStore(
            session_id=session_id,
            index=index,
            es_url=es_url,
            es_user=es_user,
            es_pw=es_pw,
        )

        try:
            store.client.indices.get(index=index)
            logger.info(f"Connected to index '{index}'.")
        except TransportError as error:
            logger.error(f"Index ({index}) not found: {error}")
            raise
        return store

# [... some class function]

# Later in the file at a function
if mode == "semantic":
            target_field_vector = target_field + "_vector"
            response = self.store.similarity_search(
                query=query, query_field=target_field_vector, k=size, filter=node_filter
            )

Dependency versions:

[tool.poetry.dependencies]
python = ">=3.11,<3.13"
tqdm = "^4.66.5"
langgraph = "^0.2.3"
elasticsearch = "^8.15.0"
arize-phoenix = "^4.23.0"
langchain-community = "^0.2.12"
langchain-openai = "^0.1.21"
langchain-elasticsearch = "^0.2.2"
colorist = "^1.7.3"
networkx = "^3.3"
python-dotenv = "^1.0.1"
tiktoken = "^0.7.0"
azure-identity = "^1.17.1"
azure-storage-blob = "^12.22.0"

Really looking forward for any sort of help. I saw that the model_id was newly introduced to also support hosted models in elastic. But i am not using hosted models in Elastic.

@miguelgrinberg
Copy link
Collaborator

A complete stack trace of the error would provide additional context, because it isn't clear to me which API is actually failing.

@DJ2695
Copy link
Author

DJ2695 commented Dec 7, 2024

Status Description
BadRequestError('x_content_parse_exception', meta=ApiResponseMeta(status=400, http_version='1.1', headers={'Content-Length': '536', 'Content-Type': 'application/vnd.elasticsearch+json;compatible-with=8', 'X-Cloud-Request-Id': '1MzcKiMQSxadcuBLAEuk-A', 'X-Elastic-Product': 'Elasticsearch', 'X-Found-Handling-Cluster': '5a2c769be6384728b57297ccb80933c7', 'X-Found-Handling-Instance': 'instance-0000000011', 'Date': 'Fri, 06 Dec 2024 12:32:17 GMT'}, duration=0.07297730445861816, node=NodeConfig(scheme='https', host='<link to elastic>, port=443, path_prefix='', headers={'user-agent': 'elasticsearch-py/8.15.0 (Python/3.11.2; elastic-transport/8.15.0)'}, connections_per_node=10, request_timeout=10.0, http_compress=False, verify_certs=True, ca_certs=None, client_cert=None, client_key=None, ssl_assert_hostname=None, ssl_assert_fingerprint=None, ssl_version=None, ssl_context=None, ssl_show_warn=True, _extras={})), body={'error': {'root_cause': [{'type': 'x_content_parse_exception', 'reason': "[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL"}], 'type': 'x_content_parse_exception', 'reason': '[1:142] [knn] failed to parse field [query_vector_builder]', 'caused_by': {'type': 'x_content_parse_exception', 'reason': '[1:142] [query_vector_builder] failed to parse field [text_embedding]', 'caused_by': {'type': 'x_content_parse_exception', 'reason': "[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL"}}}, 'status': 400})Traceback (most recent call last): File "c:\Users\<path to venvs>\site-packages\langchain_core\tools.py", line 590, in run response = context.run(self._run, *tool_args, **tool_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File <path to file>", line 764, in similarity_search hits = self._store.search( ^^^^^^^^^^^^^^^^^^^ File <path to file>, line 281, in search response = self.client.search( ^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs>\elasticsearch\_sync\client\utils.py", line 446, in wrapped return api(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs>\site-packages\elasticsearch\_sync\client\__init__.py", line 4149, in search return self.perform_request( # type: ignore[return-value] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs\site-packages\elasticsearch\_sync\client\_base.py", line 271, in perform_request response = self._perform_request( ^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users\<path to venvs\site-packages\elasticsearch\_sync\client\_base.py", line 352, in _perform_request raise HTTP_EXCEPTIONS.get(meta.status, ApiError)( elasticsearch.BadRequestError: BadRequestError(400, 'x_content_parse_exception', "[1:142] [text_embedding] model_id doesn't support values of type: VALUE_NULL")

@miguelgrinberg I had to anonymize couple of path information as it contained sensitive information, but this should not be related to the eroor anyways.

[148](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:148) if mode == "semantic":
    [149](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:149)     target_field_vector = target_field + "_vector"
--> [150](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:150)     response = self.store.similarity_search(
    [151](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:151)         query=query, query_field=target_field_vector, k=size, filter=node_filter,
    [152](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:152)         model_id=None
    [153](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:153)     )
    [154](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:154) elif mode == "regex":
    [155](file:///C:/Users/DJ/project/stores/kg/nx_elastic/elastic_kg_store.py:155)     regex_clause = [{"regexp": {target_field: regexp_to_lucene(query)}}]

File c:\Users\U726249\AppData\Local\pypoetry\Cache\virtualenvs\venvhQhJe9_u-py3.11\Lib\site-packages\langchain_elasticsearch\vectorstores.py:764, in ElasticsearchStore.similarity_search(self, query, k, fetch_k, filter, custom_query, doc_builder, **kwargs)
    [739](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:739) def similarity_search(
    [740](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:740)     self,
    [741](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:741)     query: str,
   (...)
    [750](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:750)     **kwargs: Any,
    [751](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:751) ) -> List[Document]:
    [752](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:752)     """Return Elasticsearch documents most similar to query.
    [753](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:753) 
    [754](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:754)     Args:
   (...)
    [762](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:762)         in descending order of similarity.
    [763](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:763)     """
--> [764](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:764)     hits = self._store.search(
    [765](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:765)         query=query,
    [766](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:766)         k=k,
    [767](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:767)         num_candidates=fetch_k,
    [768](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:768)         filter=filter,
    [769](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:769)         custom_query=custom_query,
    [770](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:770)     )
    [771](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:771)     docs = _hits_to_docs_scores(
    [772](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:772)         hits=hits,
    [773](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:773)         content_field=self.query_field,
    [774](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:774)         doc_builder=doc_builder,
    [775](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:775)     )
    [776](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/langchain_elasticsearch/vectorstores.py:776)     return [doc for doc, _score in docs]

File c:\Users\U726249\AppData\Local\pypoetry\Cache\virtualenvs\venvhQhJe9_u-py3.11\Lib\site-packages\elasticsearch\helpers\vectorstore\_sync\vectorstore.py:281, in VectorStore.search(self, query, query_vector, k, num_candidates, fields, filter, custom_query)
    [278](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:278)     query_body = custom_query(query_body, query)
    [279](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:279)     logger.debug(f"Calling custom_query, Query body now: {query_body}")
--> [281](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:281) response = self.client.search(
    [282](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:282)     index=self.index,
    [283](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:283)     **query_body,
    [284](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:284)     size=k,
    [285](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:285)     source=True,
    [286](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:286)     source_includes=fields,
    [287](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:287) )
    [288](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:288) hits: List[Dict[str, Any]] = response["hits"]["hits"]
    [290](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/helpers/vectorstore/_sync/vectorstore.py:290) return hits

File c:\Users\U726249\AppData\Local\pypoetry\Cache\virtualenvs\venvhQhJe9_u-py3.11\Lib\site-packages\elasticsearch\_sync\client\utils.py:446, in _rewrite_parameters.<locals>.wrapper.<locals>.wrapped(*args, **kwargs)
    [443](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/utils.py:443)         except KeyError:
    [444](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/utils.py:444)             pass
--> [446](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/utils.py:446) return api(*args, **kwargs)

File c:\Users\U726249\AppData\Local\pypoetry\Cache\virtualenvs\venvhQhJe9_u-py3.11\Lib\site-packages\elasticsearch\_sync\client\__init__.py:4149, in Elasticsearch.search(self, index, aggregations, aggs, allow_no_indices, allow_partial_search_results, analyze_wildcard, analyzer, batched_reduce_size, ccs_minimize_roundtrips, collapse, default_operator, df, docvalue_fields, error_trace, expand_wildcards, explain, ext, fields, filter_path, force_synthetic_source, from_, highlight, human, ignore_throttled, ignore_unavailable, include_named_queries_score, indices_boost, knn, lenient, max_concurrent_shard_requests, min_compatible_shard_node, min_score, pit, post_filter, pre_filter_shard_size, preference, pretty, profile, q, query, rank, request_cache, rescore, rest_total_hits_as_int, retriever, routing, runtime_mappings, script_fields, scroll, search_after, search_type, seq_no_primary_term, size, slice, sort, source, source_excludes, source_includes, stats, stored_fields, suggest, suggest_field, suggest_mode, suggest_size, suggest_text, terminate_after, timeout, track_scores, track_total_hits, typed_keys, version, body)
   [4147](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4147) if __body is not None:
   [4148](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4148)     __headers["content-type"] = "application/json"
-> [4149](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4149) return self.perform_request(  # type: ignore[return-value]
   [4150](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4150)     "POST",
   [4151](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4151)     __path,
   [4152](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4152)     params=__query,
   [4153](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4153)     headers=__headers,
   [4154](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4154)     body=__body,
   [4155](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4155)     endpoint_id="search",
   [4156](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4156)     path_parts=__path_parts,
   [4157](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/__init__.py:4157) )

File c:\Users\U726249\AppData\Local\pypoetry\Cache\virtualenvs\venvhQhJe9_u-py3.11\Lib\site-packages\elasticsearch\_sync\client\_base.py:271, in BaseClient.perform_request(self, method, path, params, headers, body, endpoint_id, path_parts)
    [255](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:255) def perform_request(
    [256](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:256)     self,
    [257](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:257)     method: str,
   (...)
    [264](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:264)     path_parts: Optional[Mapping[str, Any]] = None,
    [265](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:265) ) -> ApiResponse[Any]:
    [266](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:266)     with self._otel.span(
    [267](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:267)         method,
    [268](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:268)         endpoint_id=endpoint_id,
    [269](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:269)         path_parts=path_parts or {},
    [270](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:270)     ) as otel_span:
--> [271](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:271)         response = self._perform_request(
    [272](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:272)             method,
    [273](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:273)             path,
    [274](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:274)             params=params,
    [275](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:275)             headers=headers,
    [276](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:276)             body=body,
    [277](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:277)             otel_span=otel_span,
    [278](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:278)         )
    [279](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:279)         otel_span.set_elastic_cloud_metadata(response.meta.headers)
    [280](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:280)         return response

File c:\Users\DJ\AppData\Local\pypoetry\Cache\virtualenvs\venv-hQhJe9_u-py3.11\Lib\site-packages\elasticsearch\_sync\client\_base.py:352, in BaseClient._perform_request(self, method, path, params, headers, body, otel_span)
    [349](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:349)         except (ValueError, KeyError, TypeError):
    [350](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:350)             pass
--> [352](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:352)     raise HTTP_EXCEPTIONS.get(meta.status, ApiError)(
    [353](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:353)         message=message, meta=meta, body=resp_body
    [354](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:354)     )
    [356](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:356) # 'X-Elastic-Product: Elasticsearch' should be on every 2XX response.
    [357](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:357) if not self._verified_elasticsearch:
    [358](file:///C:/Users/DJ/AppData/Local/pypoetry/Cache/virtualenvs/venv-hQhJe9_u-py3.11/Lib/site-packages/elasticsearch/_sync/client/_base.py:358)     # If the header is set we mark the server as verified.

@DJ2695 DJ2695 closed this as completed Dec 7, 2024
@DJ2695 DJ2695 reopened this Dec 7, 2024
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

2 participants