{"record":{"id":"c56527bd9980a63d","repo":"googleapis/mcp-toolbox","slug":"failed-to-extract-relationship-schema-w","errorCode":null,"errorMessage":"failed to extract relationship schema: %w","messagePattern":"failed to extract relationship schema: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/tools/falkordb/falkordbschema/falkordbschema.go","lineNumber":196,"sourceCode":"\t\t\t\tnodeLabels, err := t.extractNodeLabels(ctx, source)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to extract node schema: %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.NodeLabels = nodeLabels\n\t\t\t\tfor _, label := range nodeLabels {\n\t\t\t\t\tschema.Statistics.NodesByLabel[label.Name] = label.Count\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"relationship-schema\",\n\t\t\tfn: func() error {\n\t\t\t\trelationships, err := t.extractRelationships(ctx, source)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to extract relationship schema: %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.Relationships = relationships\n\t\t\t\tfor _, relationship := range relationships {\n\t\t\t\t\tschema.Statistics.RelationshipsByType[relationship.Type] = relationship.Count\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"counts\",\n\t\t\tfn: func() error {\n\t\t\t\tnodeResult, err := runReadQuery(ctx, source, \"MATCH (n) RETURN count(n) AS count\")\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to count nodes: %w\", err)\n\t\t\t\t}\n\t\t\t\tedgeResult, err := runReadQuery(ctx, source, \"MATCH ()-[r]->() RETURN count(r) AS count\")","sourceCodeStart":178,"sourceCodeEnd":214,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/tools/falkordb/falkordbschema/falkordbschema.go#L178-L214","documentation":"Task-failure wrap inside the concurrent schema extraction: the 'relationship-schema' task (listing relationship types and their counts) failed, aborting the whole schema extraction.","triggerScenarios":"Thrown at internal/tools/falkordb/falkordbschema/falkordbschema.go:196 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the underlying FalkorDB query failure","Verify the graph is reachable and not mid-migration","Retry the schema extraction once transient errors clear"],"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-08T10:18:20.063Z"}