Make sure you exclude the protocol from "base_endpoint".
Hello!
We have a problem connecting to our App Search engine from python using the elastic_app_search library. After creating a client instance with our proper credentials the server is rejecting to output anything. For illustration I am using the get_schema method.
from elastic_app_search import Client
client = Client(base_endpoint=base_endpoint,api_key=api_key, use_https=False)
engine_name = "our_engine"
client.get_schema(engine_name)
We get the following error:
HTTPConnectionPool(host='h…
Im just trying to connect by python following the git example, but im getting an error:
from elastic_app_search import Client
import requests
import jwt
client = Client(base_endpoint='https://20becbeexxxx.app-search.us-east-1.aws.found.io/api/as/v1 ', api_key='private-xxxx', use_https=True)
engine_name = 'dequienescl'
document = {
'id': 'INscMGmhmX4',
'body': 'A wonderful video of a magnificent cat.'
}
client.index_document(engine_name, document)
{'id': 'INscMGmhmX4'}