Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect using the Redis URL, but can connect by specifying hostname. #3396

Open
vedantroy opened this issue Oct 1, 2024 · 2 comments
Assignees
Labels

Comments

@vedantroy
Copy link

Version: 5.1.0.

Platform: python:3.10-slim Docker image.

Description:
I can connect if I manually specify the hostname:

        self.redis = aioredis.Redis(
  	       host='my-upstash-subdomain.upstash.io',
  	       port=6379,
  	       password='****',
  	       ssl=True,
           decode_responses=False
        )

But I get a connection error if I do the following:

from redis import asyncio as aioredis
self.redis = aioredis.from_url("redis://****@my-upstash-subdomain.upstash.io:6379", decode_responses=False)
@jules-ch
Copy link

jules-ch commented Oct 2, 2024

You've set ssl to true, have you tried with rediss:// scheme ?

@dmaier-redislabs
Copy link
Contributor

dmaier-redislabs commented Oct 4, 2024

Hi @vedantroy,

@jules-ch is right. You can find further details here:

https://redis.io/chat?page=1&q=Hi%2C+if+I+want+to+connect+via+TLS+to+Redis+by+using+an+URL.+How+does+the+URL+need+to+look%3F

Does this solve your problem? Can we close this issue?

Regards,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants