{"record":{"id":"dc868248a817a376","repo":"googleapis/mcp-toolbox","slug":"failed-to-create-lineage-client-for-project-q-w","errorCode":null,"errorMessage":"failed to create Lineage client for project %q: %w","messagePattern":"failed to create Lineage client for project %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/datalineage/datalineage.go","lineNumber":118,"sourceCode":"\tname string,\n\tproject string,\n) (*lineage.Client, error) {\n\tctx, span := sources.InitConnectionSpan(ctx, tracer, SourceType, name)\n\tdefer span.End()\n\n\tcred, err := google.FindDefaultCredentials(ctx, sources.CloudPlatformScope)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to find default Google Cloud credentials for project %q: %w\", project, err)\n\t}\n\n\tuserAgent, err := util.UserAgentFromContext(ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tclient, err := lineage.NewClient(ctx, option.WithUserAgent(userAgent), option.WithCredentials(cred))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create Lineage client for project %q: %w\", project, err)\n\t}\n\n\treturn client, nil\n}\n\nfunc (s *Source) SearchLineageStreaming(\n\tctx context.Context,\n\tparentLocation string,\n\tlocations []string,\n\trootEntities []*lineagepb.EntityReference,\n\tdirection lineagepb.SearchLineageStreamingRequest_SearchDirection,\n\tmaxDepth int32,\n\tmaxResults int32,\n\tmaxProcessPerLink int32,\n\trequestProcessDetails bool,\n) ([]*lineagepb.LineageLink, []string, error) {\n\tparent := fmt.Sprintf(\"projects/%s/locations/%s\", s.ProjectID(), parentLocation)\n","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/datalineage/datalineage.go#L100-L136","documentation":"Error \"failed to create Lineage client for project %q: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/datalineage/datalineage.go:118 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":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}