redis/go-redis · error
redis: CMS.INFO unexpected key %s
Error message
redis: CMS.INFO unexpected key %s
What it means
Error "redis: CMS.INFO unexpected key %s" thrown in redis/go-redis.
Source
Thrown at probabilistic.go:871
}
var key string
var result CMSInfo
for f := 0; f < n; f++ {
key, err = rd.ReadString()
if err != nil {
return err
}
switch key {
case "width":
result.Width, err = rd.ReadInt()
case "depth":
result.Depth, err = rd.ReadInt()
case "count":
result.Count, err = rd.ReadInt()
default:
return fmt.Errorf("redis: CMS.INFO unexpected key %s", key)
}
if err != nil {
return err
}
}
cmd.val = result
return nil
}
func (cmd *CMSInfoCmd) Clone() Cmder {
return &CMSInfoCmd{
baseCmd: cmd.cloneBaseCmd(),
val: cmd.val, // CMSInfo is a simple struct, can be copied directly
}
}
View on GitHub (pinned to c5cad058c7)
When it happens
Trigger: Thrown at probabilistic.go:871 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of redis/go-redis@c5cad058c7 (2026-09-01).
Data as JSON: /api/errors/15b5ef5fc1b8a4cd.
Report an issue: GitHub.