{"record":{"id":"1b734a799282653e","repo":"googleapis/mcp-toolbox","slug":"failed-to-find-default-google-cloud-credentials-fo","errorCode":null,"errorMessage":"failed to find default Google Cloud credentials for project %q: %w","messagePattern":"failed to find default Google Cloud credentials for project %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/datalineage/datalineage.go","lineNumber":108,"sourceCode":"\treturn s.Config\n}\n\nfunc (s *Source) ProjectID() string {\n\treturn s.Project\n}\n\nfunc initLineageConnection(\n\tctx context.Context,\n\ttracer trace.Tracer,\n\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,","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/datalineage/datalineage.go#L90-L126","documentation":"Error \"failed to find default Google Cloud credentials for project %q: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/datalineage/datalineage.go:108 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"}