{"record":{"id":"e9de88056d8f0046","repo":"googleapis/mcp-toolbox","slug":"failed-to-extract-node-schema-w","errorCode":null,"errorMessage":"failed to extract node schema: %w","messagePattern":"failed to extract node schema: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/tools/falkordb/falkordbschema/falkordbschema.go","lineNumber":180,"sourceCode":"\tif _, err := runReadQuery(ctx, source, \"RETURN 1\"); err != nil {\n\t\tif strings.Contains(err.Error(), \"empty key\") {\n\t\t\treturn schema, nil\n\t\t}\n\t\treturn nil, fmt.Errorf(\"failed to reach graph %q: %w\", source.DefaultGraph(), err)\n\t}\n\n\tvar mu sync.Mutex\n\n\ttasks := []struct {\n\t\tname string\n\t\tfn   func() error\n\t}{\n\t\t{\n\t\t\tname: \"node-schema\",\n\t\t\tfn: func() error {\n\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()","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/tools/falkordb/falkordbschema/falkordbschema.go#L162-L198","documentation":"Task-failure wrap inside the concurrent schema extraction: the 'node-schema' task (CALL db.labels() plus per-label sampling) failed, aborting the whole schema extraction.","triggerScenarios":"Thrown at internal/tools/falkordb/falkordbschema/falkordbschema.go:180 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the underlying FalkorDB query failure","Verify the database is reachable and the graph is not being written concurrently at max load","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"}