Skip to content

Getting error message about command name when making rpop sometimes #3340

@edwvee

Description

@edwvee

Version:

github.com/redis/go-redis/v9 v9.7.0

I'm connect:

redis := redis.NewClient(&redis.Options{
		Network:         settings.RedisNetwork,
		Addr:            settings.RedisAddr,
		Password:        settings.RedisPassword,
		DB:              0,
		MaxActiveConns:  10,
		MaxIdleConns:    1,
		ConnMaxLifetime: time.Minute,
	})
defer redis.Close()
	_, err := redis.Ping(ctx).Result()
	if err != nil {
		log.Fatalf("Error connecting redis: %s", err.Error())
	}

Then I use redis in my daemon all it's lifetime:

res, err := redis.RPop(ctx, key).Result()
if err != nil{
    panic(err)
}

I don't have any other usage of Redis.
So it works for days perfectly, but then I get next error:

ERR Syntax error, try CLIENT (LIST | KILL | GETNAME | SETNAME | PAUSE | REPLY)

I don't know if it's a bug in my version of redis or a bug in the library. For me it looks like I call "rpop my_key", redis answers "I don't know your command". Help me, please.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions