{"record":{"id":"810ac629248a1aba","repo":"redis/go-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/redis/go-redis/blob/c5cad058c72f58370553b48566302303cf8a2e89/probabilistic.go#L339-L375","documentation":"Error \"redis: BLOOM.INFO unexpected key %s\" thrown in redis/go-redis.","triggerScenarios":"Thrown at probabilistic.go:357 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c5cad058c72f58370553b48566302303cf8a2e89","analyzedAt":"2026-09-01T06:50:53.388Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}