go-redis
go-redis copied to clipboard
[BUG] Redis: dial tcp: address rediss://<username>:<password>-@redis-3666656f-<cloudprovider>:<PORT>: too many colons in address
Issue tracker is used for reporting bugs and discussing new features. Please use stackoverflow for supporting issues.
Expected Behavior
successful connection to redis client
Current Behavior
outputs an error: too many colons in address
Possible Solution
Didn't find a proper solution
Steps to Reproduce
- login to avien cloud provider
- start free redis cluster
- copy the address, username, password from redis and try giving it a test connection
Context (Environment)
--
Detailed Description
Got this error while connecting to redis
Redis: dial tcp: address rediss://
Possible Implementation
--
I had a similar issue. This was my redis options:
redisOptions := redis.Options{
Addr: "redis://localhost:6379",
Password: "banana",
}
Removing the redis:// fixed it for me. Like so:
redisOptions := redis.Options{
Addr: "localhost:6379",
Password: "banana",
}
you don't need to specify redis:// in the address.