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

Special Characters in password lead to "too many colons in address" error #49

Open
ArMot opened this issue Apr 3, 2022 · 2 comments
Open

Comments

@ArMot
Copy link

ArMot commented Apr 3, 2022

Hi,
I have set a password for redis using password generators. it contains special characters (but not colon).
But when I try:

redis-inventory inventory redis://password$%^*@localhost:63795/3

I get this error:

INF Start scanning FTL Can't create redis client error="dial tcp: address redis://:password$%^*@localhost:63795/3: too many colons in address"

what should I do ?

@onfleet-ablair
Copy link

You can work around this,

$ python3
>>> import urllib.parse
>>> urllib.parse.quote('sp#c!al ch@rs')
'sp%23c%21al%20ch%40rs'

$ docker run --rm dclg/redis-inventory inventory --output=chart redis://:'sp%23c%21al%20ch%40rs'@my.redis.server

@hartleybrody
Copy link

I am also getting an error about "too many colons in address" but I don't have any special characters in my password. It's all alphanumeric, of the format: rediss://user:pass@host-with-dashes.and.tld:port. Interestingly, the error message echos back the connection URL but it has appended an extra colon onto the end of it, so maybe there's a trailing colon being added somewhere?

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

No branches or pull requests

3 participants