Find answers from the community

Updated 6 months ago

@Logan M when trying to initialize

At a glance

A community member is experiencing a ConnectionTimeout error when trying to initialize an OpensearchVectorClient for an AWS OpenSearch Service instance. They have provided the relevant code and are seeking help. Other community members suggest checking the source code and ensuring the necessary AWS credentials are supplied. After some back-and-forth, the original poster eventually resolves the issue by addressing custom NO_PROXY settings. The community members are helpful and prompt in their responses.

Useful resources
when trying to initialize OpensearchVectorClient for AWS OpenSearch Service instance, getting ConnectionTimeout error. Please help 🥺

credentials = boto3.Session().get_credentials() awsauth = AWS4Auth(region = region, service=service, refreshable_credential=credentials) client = OpensearchVectorClient( endpoint, idx, 4096, http_auth=awsauth, embedding_field=embedding_field, text_field=text_field, use_ssl=true, verify_certs=true,connection_class=RequestsHttpConnection, timeout=30, port=443, )
L
C
a
9 comments
@nerdai Please help 🥺
Hey I would def check the source code as Logan suggested. One other thing I might suggest is checking to ensure you have supplied the necessary aws creds.
Checked source code and aws cred multiple times, still getting the same error 😭 Please help
Attachment
image.png
what error are you getting?
can you share the traceback?
oh I got it! I was setting custom NO_PROXY settings.

Thank you so much @Logan M and @nerdai, you guys are amazing and always ready to help promptly 🥹 🥹
ohhh glad you were able to figure out!!!
no problemo 🙂
Add a reply
Sign up and join the conversation on Discord