{"record":{"id":"29cb1e752d382a6d","repo":"redis/go-redis","slug":"invalid-results-format-expected-map-got-t","errorCode":null,"errorMessage":"invalid results format: expected map, got %T","messagePattern":"invalid results format: expected map, got %T","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"search_commands.go","lineNumber":2473,"sourceCode":"//\t  \"results\": map{\n//\t    \"misspelled_term\": [\n//\t      map{\"suggestion\": score},\n//\t      ...\n//\t    ],\n//\t    ...\n//\t  }\n//\t}\nfunc parseFTSpellCheckRESP3(data map[interface{}]interface{}) ([]SpellCheckResult, error) {\n\tresults := make([]SpellCheckResult, 0)\n\n\tresultsData, ok := data[\"results\"]\n\tif !ok {\n\t\treturn results, nil\n\t}\n\n\tresultsMap, ok := resultsData.(map[interface{}]interface{})\n\tif !ok {\n\t\treturn nil, fmt.Errorf(\"invalid results format: expected map, got %T\", resultsData)\n\t}\n\n\tfor termKey, suggestionsData := range resultsMap {\n\t\tterm, ok := termKey.(string)\n\t\tif !ok {\n\t\t\tcontinue\n\t\t}\n\n\t\tsuggestionsArray, ok := suggestionsData.([]interface{})\n\t\tif !ok {\n\t\t\tcontinue\n\t\t}\n\n\t\tsuggestions := make([]SpellCheckSuggestion, 0, len(suggestionsArray))\n\t\tfor _, suggestionData := range suggestionsArray {\n\t\t\tsuggestionMap, ok := suggestionData.(map[interface{}]interface{})\n\t\t\tif !ok {\n\t\t\t\tcontinue","sourceCodeStart":2455,"sourceCodeEnd":2491,"githubUrl":"https://github.com/redis/go-redis/blob/c5cad058c72f58370553b48566302303cf8a2e89/search_commands.go#L2455-L2491","documentation":"Error \"invalid results format: expected map, got %T\" thrown in redis/go-redis.","triggerScenarios":"Thrown at search_commands.go:2473 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"}