{"record":{"id":"6da934b60d4235b6","repo":"googleapis/mcp-toolbox","slug":"failed-to-get-aspect-type-after-retries-for-entry","errorCode":null,"errorMessage":"failed to get aspect type after retries for entry %q: %w","messagePattern":"failed to get aspect type after retries for entry %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/sources/dataplex/dataplex.go","lineNumber":345,"sourceCode":"\t\tgetAspectBackOff := backoff.NewExponentialBackOff()\n\n\t\tresourceName := entry.DataplexEntry.GetEntrySource().Resource\n\t\tgetAspectTypeReq := &dataplexpb.GetAspectTypeRequest{\n\t\t\tName: resourceName,\n\t\t}\n\n\t\toperation := func() (*dataplexpb.AspectType, error) {\n\t\t\taspectType, err := s.CatalogClient().GetAspectType(ctx, getAspectTypeReq)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"failed to get aspect type for entry %q: %w\", resourceName, err)\n\t\t\t}\n\t\t\treturn aspectType, nil\n\t\t}\n\n\t\t// Retry the GetAspectType operation with exponential backoff\n\t\taspectType, err := backoff.Retry(ctx, operation, backoff.WithBackOff(getAspectBackOff))\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to get aspect type after retries for entry %q: %w\", resourceName, err)\n\t\t}\n\n\t\tresults = append(results, aspectType)\n\t}\n\treturn results, nil\n}\n\nfunc (s *Source) SearchEntries(ctx context.Context, query string, pageSize int, orderBy string, scope string) ([]*dataplexpb.SearchEntriesResult, error) {\n\tif pageSize <= 0 {\n\t\treturn nil, fmt.Errorf(\"pageSize must be positive: %d\", pageSize)\n\t}\n\tit, err := s.searchRequest(ctx, query, pageSize, orderBy, scope)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tvar results []*dataplexpb.SearchEntriesResult\n\tfor len(results) < pageSize {","sourceCodeStart":327,"sourceCodeEnd":363,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/sources/dataplex/dataplex.go#L327-L363","documentation":"Error \"failed to get aspect type after retries for entry %q: %w\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/sources/dataplex/dataplex.go:345 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"}