{"id":"6ee6327f18f7ec5b","repo":"go-redis/redis","slug":"redis-bloom-info-unexpected-key-s","errorCode":null,"errorMessage":"redis: BLOOM.INFO unexpected key %s","messagePattern":"redis: BLOOM\\.INFO unexpected key (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"probabilistic.go","lineNumber":357,"sourceCode":"\t// Create a mapping from key names to pointers of struct fields\n\trespMapping := map[string]*int64{\n\t\t\"Capacity\":                 &result.Capacity,\n\t\t\"CAPACITY\":                 &result.Capacity,\n\t\t\"Size\":                     &result.Size,\n\t\t\"SIZE\":                     &result.Size,\n\t\t\"Number of filters\":        &result.Filters,\n\t\t\"FILTERS\":                  &result.Filters,\n\t\t\"Number of items inserted\": &result.ItemsInserted,\n\t\t\"ITEMS\":                    &result.ItemsInserted,\n\t\t\"Expansion rate\":           &result.ExpansionRate,\n\t\t\"EXPANSION\":                &result.ExpansionRate,\n\t}\n\n\t// Helper function to read and assign a value based on the key\n\treadAndAssignValue := func(key string) error {\n\t\tfieldPtr, exists := respMapping[key]\n\t\tif !exists {\n\t\t\treturn fmt.Errorf(\"redis: BLOOM.INFO unexpected key %s\", key)\n\t\t}\n\n\t\t// Read the integer and assign to the field via pointer dereferencing\n\t\tval, err := rd.ReadInt()\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t*fieldPtr = val\n\t\treturn nil\n\t}\n\n\treadType, err := rd.PeekReplyType()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif len(cmd.args) > 2 && readType == proto.RespArray {\n\t\tn, err := rd.ReadArrayLen()","sourceCodeStart":339,"sourceCodeEnd":375,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/probabilistic.go#L339-L375","documentation":"Error \"redis: BLOOM.INFO unexpected key %s\" thrown in go-redis/redis.","triggerScenarios":"Thrown at probabilistic.go:357 when the library encounters an invalid state.","commonSituations":"Tolerate unknown info keys by ignoring them rather than erroring, or pin module versions.","solutions":["Handle the unexpected key in the error by extending the BLOOM.INFO parsing switch","Check the RedisBloom version for new info fields"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}