{"id":"ab6e0b98931ab44c","repo":"go-redis/redis","slug":"redis-tdigest-info-unexpected-key-s","errorCode":null,"errorMessage":"redis: tdigest.info unexpected key %s","messagePattern":"redis: tdigest\\.info unexpected key (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"probabilistic.go","lineNumber":1345,"sourceCode":"\t\t\tresult.Compression, err = rd.ReadInt()\n\t\tcase \"Capacity\":\n\t\t\tresult.Capacity, err = rd.ReadInt()\n\t\tcase \"Merged nodes\":\n\t\t\tresult.MergedNodes, err = rd.ReadInt()\n\t\tcase \"Unmerged nodes\":\n\t\t\tresult.UnmergedNodes, err = rd.ReadInt()\n\t\tcase \"Merged weight\":\n\t\t\tresult.MergedWeight, err = rd.ReadInt()\n\t\tcase \"Unmerged weight\":\n\t\t\tresult.UnmergedWeight, err = rd.ReadInt()\n\t\tcase \"Observations\":\n\t\t\tresult.Observations, err = rd.ReadInt()\n\t\tcase \"Total compressions\":\n\t\t\tresult.TotalCompressions, err = rd.ReadInt()\n\t\tcase \"Memory usage\":\n\t\t\tresult.MemoryUsage, err = rd.ReadInt()\n\t\tdefault:\n\t\t\treturn fmt.Errorf(\"redis: tdigest.info unexpected key %s\", key)\n\t\t}\n\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tcmd.val = result\n\treturn nil\n}\n\nfunc (cmd *TDigestInfoCmd) Clone() Cmder {\n\treturn &TDigestInfoCmd{\n\t\tbaseCmd: cmd.cloneBaseCmd(),\n\t\tval:     cmd.val, // TDigestInfo is a simple struct, can be copied directly\n\t}\n}\n","sourceCodeStart":1327,"sourceCodeEnd":1363,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/probabilistic.go#L1327-L1363","documentation":"Error \"redis: tdigest.info unexpected key %s\" thrown in go-redis/redis.","triggerScenarios":"Thrown at probabilistic.go:1345 when the library encounters an invalid state.","commonSituations":"Tolerate unknown keys in info replies or pin tested module versions.","solutions":["Extend TDIGEST.INFO parsing for the unexpected key","Check module version compatibility"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}