Replies: 2 comments 2 replies
-
It looks like the Here's a quick guide on how to do it:
Example code snippet: from langchain_community.utilities.redis import get_client
# Replace the following with your actual SSL files and Redis credentials
ssl_cert_reqs = 'required'
ssl_ca_certs = '/path/to/ca_cert.pem'
ssl_certfile = '/path/to/client_cert.pem'
ssl_keyfile = '/path/to/client_key.pem'
redis_client = get_client(
redis_url="rediss://username:password@your_redis_host:6379",
ssl_cert_reqs=ssl_cert_reqs,
ssl_ca_certs=ssl_ca_certs,
ssl_certfile=ssl_certfile,
ssl_keyfile=ssl_keyfile
) Make sure to replace placeholders with your actual Redis credentials and paths to your SSL certificate files. This approach should help you bypass the For further details, you might want to check the source code of the Sources
|
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
This is throwing a type error:
RedisChatMessageHistory.init() got an unexpected keyword argument 'ssl_certfile'
How can I fix this error. I want to connect to the redis instance with ssl certs for message history
System Info
linux
Beta Was this translation helpful? Give feedback.
All reactions