rejonson icon indicating copy to clipboard operation
rejonson copied to clipboard

ERR Client sent AUTH, but no password is set

Open Tyxiang opened this issue 4 years ago • 2 comments

I am connecting to a redis service that requires a password:

    goRedisClient := redis.NewClient(&redis.Options{
        Addr:     "abc.com:8000",
        Password: "xxxxxxxxx",
        DB:       0,
    })

When I call client.JsonGet() method, I get an error message:

ERR Client sent AUTH, but no password is set

Looks like something went wrong about the password.

Tyxiang avatar Jun 12 '20 08:06 Tyxiang

This is not client issue, the error means that you sent password to Redis but the Redis doesn't require password at all. If you try empty password you shouldn't get this error

KromDaniel avatar Jun 13 '20 08:06 KromDaniel

This is not client issue, the error means that you sent password to Redis but the Redis doesn't require password at all. If you try empty password you shouldn't get this error

This should be a bug of "github.com/go-redis/redis/". I have reported here.

Tyxiang avatar Jun 15 '20 01:06 Tyxiang