Никак не могу отправить данные в elastic

Привет, я новенький и пытаюсь разобраться, мне нужно отправить данные, но выбивает
ошибка и я не понимаю что не так, возможно кто-то может помочь

```
from elasticsearch import Elasticsearch, RequestsHttpConnection,Urllib3HttpConnection
import json
from elasticsearch import helpers

es = Elas    ticsearch(
        hosts=[{'host': host, 'port': port}],
        api_key = ('api_id', 'api_key'),
        scheme="https",
        connection_class=RequestsHttpConnection)

document = {
    "title": "Moneyball",
    "director": "Bennett Miller",
    "year": "2011"
}

data = json.dumps(document)
actions = [{"_index": "index","_source":data}]
helpers.bulk(es, actions) 
 File "c:\Users\Stelmakh Oleksandr\Desktop\Pyton\Task\444.py", line 24, in <module>
       helpers.bulk(es, actions)
     File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\helpers\actions.py", line 399, in bulk
   for ok, item in streaming_bulk(client, actions, *args, **kwargs):
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\helpers\actions.py", line 320, in streaming_bulk     
   for data, (ok, info) in zip(
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\helpers\actions.py", line 249, in _process_bulk_chunk
   for item in gen:
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\helpers\actions.py", line 196, in _process_bulk_chunk_error
   raise error
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\helpers\actions.py", line 237, in _process_bulk_chunk     
   resp = client.bulk("\n".join(bulk_actions) + "\n", *args, **kwargs)
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\client\utils.py", line 152, in _wrapped
   return func(*args, params=params, headers=headers, **kwargs)
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\client\__init__.py", line 454, in bulk
   return self.transport.perform_request(
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\transport.py", line 415, in perform_request
   raise e
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\transport.py", line 381, in perform_request
   status, headers_response, data = connection.perform_request(
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\connection\http_requests.py", line 204, in perform_request
   self._raise_error(response.status_code, raw_data)
 File "C:\Users\Stelmakh Oleksandr\AppData\Local\Programs\Python\Python39\lib\site-packages\elasticsearch\connection\base.py", line 322, in _raise_error
   raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
elasticsearch.exceptions.NotFoundError: NotFoundError(404, 'Not Found', 'Not Found')

А что возвращается если запустить

curl https://<HOST>:<PORT>/ 

не том же компьютере и заманить <HOST>:<PORT>на значения переменных host и port

Спасибо, уже нашел решение в другом топике: