googleapis/mcp-toolbox · error

failed to create Lineage client for project %q: %w

Error message

failed to create Lineage client for project %q: %w

What it means

Error "failed to create Lineage client for project %q: %w" thrown in googleapis/mcp-toolbox.

Source

Thrown at internal/sources/datalineage/datalineage.go:118

	name string,
	project string,
) (*lineage.Client, error) {
	ctx, span := sources.InitConnectionSpan(ctx, tracer, SourceType, name)
	defer span.End()

	cred, err := google.FindDefaultCredentials(ctx, sources.CloudPlatformScope)
	if err != nil {
		return nil, fmt.Errorf("failed to find default Google Cloud credentials for project %q: %w", project, err)
	}

	userAgent, err := util.UserAgentFromContext(ctx)
	if err != nil {
		return nil, err
	}

	client, err := lineage.NewClient(ctx, option.WithUserAgent(userAgent), option.WithCredentials(cred))
	if err != nil {
		return nil, fmt.Errorf("failed to create Lineage client for project %q: %w", project, err)
	}

	return client, nil
}

func (s *Source) SearchLineageStreaming(
	ctx context.Context,
	parentLocation string,
	locations []string,
	rootEntities []*lineagepb.EntityReference,
	direction lineagepb.SearchLineageStreamingRequest_SearchDirection,
	maxDepth int32,
	maxResults int32,
	maxProcessPerLink int32,
	requestProcessDetails bool,
) ([]*lineagepb.LineageLink, []string, error) {
	parent := fmt.Sprintf("projects/%s/locations/%s", s.ProjectID(), parentLocation)

View on GitHub (pinned to 8cc6e09de2)

When it happens

Trigger: Thrown at internal/sources/datalineage/datalineage.go:118 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of googleapis/mcp-toolbox@8cc6e09de2 (2026-09-05). Data as JSON: /api/errors/dc868248a817a376. Report an issue: GitHub.