From 0e6b613c89e6b74dce4ff88ebc9fb5e60fc53638 Mon Sep 17 00:00:00 2001 From: jiangying Date: Wed, 23 Oct 2024 19:54:08 +0800 Subject: [PATCH 1/2] fix proxy.md Signed-off-by: jiangying --- guides/proxy.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guides/proxy.md b/guides/proxy.md index 96b7d4418..df27cde9a 100644 --- a/guides/proxy.md +++ b/guides/proxy.md @@ -10,9 +10,10 @@ from opensearchpy import OpenSearch, RequestsHttpConnection OpenSearch( - hosts=["htps://..."], + hosts=["https://..."], use_ssl=True, verify_certs=True, + connection_class=RequestsHttpConnection, trust_env=True, ) ``` @@ -29,4 +30,4 @@ client = AsyncOpenSearch( connection_class=AIOHttpConnection, trust_env=True, ) -``` \ No newline at end of file +``` From 05d222bfac34c986ebb77285ed8950a5e503a353 Mon Sep 17 00:00:00 2001 From: jiangying Date: Wed, 23 Oct 2024 19:55:44 +0800 Subject: [PATCH 2/2] Update proxy.md Signed-off-by: jiangying --- guides/proxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/proxy.md b/guides/proxy.md index df27cde9a..e7b5b4f7c 100644 --- a/guides/proxy.md +++ b/guides/proxy.md @@ -24,7 +24,7 @@ OpenSearch( from opensearchpy import AsyncOpenSearch, AIOHttpConnection client = AsyncOpenSearch( - hosts=["htps://..."], + hosts=["https://..."], use_ssl=True, verify_certs=True, connection_class=AIOHttpConnection,