{"record":{"id":"594d09bcb21777c8","repo":"kubernetes/kops","slug":"error-getting-httphealthcheck-q-w","errorCode":null,"errorMessage":"error getting HTTPHealthCheck %q: %w","messagePattern":"error getting HTTPHealthCheck %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/resources/gce/gce.go","lineNumber":409,"sourceCode":"\t\t\tcontinue\n\t\t}\n\n\t\tresourceTracker := &resources.Resource{\n\t\t\tName:    tp.Name,\n\t\t\tID:      tp.Name,\n\t\t\tType:    typeTargetPool,\n\t\t\tDeleter: deleteTargetPool,\n\t\t\tObj:     tp,\n\t\t}\n\n\t\tklog.V(4).Infof(\"Found resource: %s\", tp.SelfLink)\n\t\tresourceTrackers = append(resourceTrackers, resourceTracker)\n\n\t\tfor _, healthCheckLink := range tp.HealthChecks {\n\t\t\thealthCheckName := gce.LastComponent(healthCheckLink)\n\t\t\thc, err := c.Compute().HTTPHealthChecks().Get(c.Project(), healthCheckName)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"error getting HTTPHealthCheck %q: %w\", healthCheckName, err)\n\t\t\t}\n\n\t\t\thealthCheckResource := &resources.Resource{\n\t\t\t\tName:    hc.Name,\n\t\t\t\tID:      hc.Name,\n\t\t\t\tType:    typeHTTPHealthcheck,\n\t\t\t\tDeleter: deleteHTTPHealthCheck,\n\t\t\t\tObj:     hc,\n\t\t\t}\n\t\t\thealthCheckResource.Blocked = append(healthCheckResource.Blocked, resourceTracker.Type+\":\"+resourceTracker.ID)\n\t\t\tresourceTrackers = append(resourceTrackers, healthCheckResource)\n\t\t}\n\n\t}\n\n\treturn resourceTrackers, nil\n}\n","sourceCodeStart":391,"sourceCodeEnd":427,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/resources/gce/gce.go#L391-L427","documentation":"Fires in listTargetPools when HTTPHealthChecks().Get fails for one of the target pool's health check links — the health check referenced by a discovered target pool could not be fetched, blocking complete resource tracking.","triggerScenarios":"Thrown at pkg/resources/gce/gce.go:409 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check compute.httpHealthChecks.get permission","Retry; the health check may have been concurrently deleted — re-running discovery refreshes links","Verify the health check resource still exists in the project"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}