# The client noticed that the server is not Elasticsearch and we do not support this unknown product

**URL:** https://discuss.elastic.co/t/the-client-noticed-that-the-server-is-not-elasticsearch-and-we-do-not-support-this-unknown-product/354046
**Category:** Elastic Search
**Tags:** docker, curator, transforms, elastic-app-search, elastic-workplace-search
**Created:** [February 25, 2024, 10:16am UTC](https://discuss.elastic.co/t/the-client-noticed-that-the-server-is-not-elasticsearch-and-we-do-not-support-this-unknown-product/354046 "2024-02-25T10:16:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jeet.mail72](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeet.mail72/32/132060_2.png) [@jeet.mail72](https://discuss.elastic.co/u/jeet.mail72)
#### Post date: [February 25, 2024, 10:16am UTC](https://discuss.elastic.co/t/the-client-noticed-that-the-server-is-not-elasticsearch-and-we-do-not-support-this-unknown-product/354046/1 "2024-02-25T10:16:09Z")

</div>

Hi All,  
I am using Elasticsearch with Python using Docker on the MacBook Pro and getting the following error. The index is created but still getting the exception.

**Print Logs:**  
Creating Elastic Search connection.  
Elastic Search connection created.  
Creating index product\_index\_202402250939

**Elasticsearch API hit by Python**  
HEAD http://python\_elasticsearch:9200/index\_name [status:404 duration:0.012s]  
PUT http://python\_elasticsearch:9200/product\_index\_202402250939 [status:200 duration:0.134s]

Exception: The client noticed that the server is not Elasticsearch and we do not support this unknown product

docker-compose.yml

```auto
python_elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
    container_name: python_elasticsearch
    environment:
      - node.name=python_elasticsearch
      - cluster.name=es-docker-cluster
      - discovery.seed_hosts=es02
      - cluster.initial_master_nodes=python_elasticsearch
      - bootstrap.memory_lock=true
      - xpack.security.enabled=false
      - "ES_JAVA_OPTS=-Xms2048m -Xmx2048m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - data01:/Users/jeet/docker/es_data
    ports:
      - "9500:9200"

```

Environment details:

Python 3.12.2  
Docker image: [docker.elastic.co/elasticsearch/elasticsearch:7.11.0](http://docker.elastic.co/elasticsearch/elasticsearch:7.11.0)

Python code:

Connect to Elasticsearch:

```auto
ElasticConnect.es = Elasticsearch([
                {'host': 'python_elasticsearch', 'port': 9200, 'scheme': 'http'}
            ]);

```

Create Index:  
`ElasticConnect.es.indices.create(index=index_name, body=mapping)`

Please help me.  
What is wrong here.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 25, 2024, 1:50pm UTC](https://discuss.elastic.co/t/the-client-noticed-that-the-server-is-not-elasticsearch-and-we-do-not-support-this-unknown-product/354046/2 "2024-02-25T13:50:37Z")

</div>

May be try:

```auto
ElasticConnect.es = Elasticsearch([
                {'host': 'localhost', 'port': 9200, 'scheme': 'https'}
            ]);

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 24, 2024, 1:50pm UTC](https://discuss.elastic.co/t/the-client-noticed-that-the-server-is-not-elasticsearch-and-we-do-not-support-this-unknown-product/354046/3 "2024-03-24T13:50:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
