{"record":{"id":"9d1c70c419f7ca0c","repo":"googleapis/mcp-toolbox","slug":"failed-to-list-indexes-w","errorCode":null,"errorMessage":"failed to list indexes: %w","messagePattern":"failed to list indexes: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/tools/falkordb/falkordbschema/falkordbschema.go","lineNumber":232,"sourceCode":"\t\t\t\tedgeResult, err := runReadQuery(ctx, source, \"MATCH ()-[r]->() RETURN count(r) AS count\")\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to count relationships: %w\", err)\n\t\t\t\t}\n\t\t\t\tmu.Lock()\n\t\t\t\tdefer mu.Unlock()\n\t\t\t\tschema.GraphInfo.NodeCount = helpers.FirstRowInt64(nodeResult)\n\t\t\t\tschema.GraphInfo.EdgeCount = helpers.FirstRowInt64(edgeResult)\n\t\t\t\tschema.Statistics.TotalNodes = schema.GraphInfo.NodeCount\n\t\t\t\tschema.Statistics.TotalRelationships = schema.GraphInfo.EdgeCount\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"indexes\",\n\t\t\tfn: func() error {\n\t\t\t\tresult, err := runReadQuery(ctx, source, \"CALL db.indexes()\")\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to list indexes: %w\", err)\n\t\t\t\t}\n\t\t\t\tmu.Lock()\n\t\t\t\tdefer mu.Unlock()\n\t\t\t\tschema.Indexes = helpers.Rows(result)\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"constraints\",\n\t\t\tfn: func() error {\n\t\t\t\tresult, err := runReadQuery(ctx, source, \"CALL db.constraints()\")\n\t\t\t\tif err != nil {\n\t\t\t\t\t// Constraint listing varies across FalkorDB versions;\n\t\t\t\t\t// report the failure in the schema rather than failing\n\t\t\t\t\t// the whole extraction.\n\t\t\t\t\tmu.Lock()\n\t\t\t\t\tdefer mu.Unlock()\n\t\t\t\t\tschema.Errors = append(schema.Errors, fmt.Sprintf(\"failed to list constraints: %s\", err))","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/tools/falkordb/falkordbschema/falkordbschema.go#L214-L250","documentation":"Task-failure wrap inside the concurrent schema extraction: the 'indexes' task (CALL db.indexes()) failed while listing graph indexes, aborting the whole schema extraction.","triggerScenarios":"Thrown at internal/tools/falkordb/falkordbschema/falkordbschema.go:232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the underlying FalkorDB failure","Check the FalkorDB version supports db.indexes()","Retry the schema extraction once the server is healthy"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}