{"record":{"id":"405294f8fb94a159","repo":"kubernetes/kops","slug":"error-listing-backend-services-v","errorCode":null,"errorMessage":"error listing Backend Services: %v","messagePattern":"error listing Backend Services: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/backend_service.go","lineNumber":67,"sourceCode":"\nfunc (e *BackendService) Find(c *fi.CloudupContext) (*BackendService, error) {\n\tactual, err := e.find(c.T.Cloud.(gce.GCECloud))\n\tif actual != nil && err == nil {\n\t\t// Ignore system fields\n\t\tactual.Lifecycle = e.Lifecycle\n\t\tactual.ForAPIServer = e.ForAPIServer\n\t}\n\treturn actual, err\n}\n\nfunc (e *BackendService) find(cloud gce.GCECloud) (*BackendService, error) {\n\tr, err := cloud.Compute().RegionBackendServices().Get(cloud.Project(), cloud.Region(), *e.Name)\n\tif err != nil {\n\t\tif gce.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\n\t\treturn nil, fmt.Errorf(\"error listing Backend Services: %v\", err)\n\t}\n\n\tactual := &BackendService{}\n\tactual.Name = &r.Name\n\tactual.Protocol = &r.Protocol\n\tactual.LoadBalancingScheme = &r.LoadBalancingScheme\n\tvar hcs []*HealthCheck\n\tfor _, hc := range r.HealthChecks {\n\t\tnameParts := strings.Split(hc, \"/\")\n\t\thcs = append(hcs, &HealthCheck{Name: &nameParts[len(nameParts)-1]})\n\t}\n\tactual.HealthChecks = hcs\n\tvar igms []*InstanceGroupManager\n\tfor _, be := range r.Backends {\n\t\tif be.Group == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\tnameParts := strings.Split(be.Group, \"/\")","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/backend_service.go#L49-L85","documentation":"Wrapped error from BackendService.find when the RegionBackendServices.Get call fails with something other than 404. Despite the message saying 'listing', it is a single-resource Get; typical causes are auth/permission errors, invalid project or region, or GCE API unavailability.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/backend_service.go:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped %v for the Google API reason (403 permission, 400 bad request, connectivity)","Verify the service account has compute.regionBackendServices.get on the target project/region","Retry if the error indicates a transient GCE API failure"],"exampleFix":null,"handlingStrategy":"try-catch","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-12T12:17:11.808Z"}