{"record":{"id":"12d90663442481e0","repo":"kubernetes/kops","slug":"error-building-storage-api-client-v","errorCode":null,"errorMessage":"error building storage API client: %v","messagePattern":"error building storage API client: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gce/gce_cloud.go","lineNumber":150,"sourceCode":"\tklog.V(2).Infof(\"Building new GCE cloud instance for region %q and project %q\", region, project)\n\n\tc := &gceCloudImplementation{region: region, project: project}\n\n\tctx := context.Background()\n\n\tif os.Getenv(\"GOOGLE_APPLICATION_CREDENTIALS\") != \"\" {\n\t\tklog.Infof(\"Will load GOOGLE_APPLICATION_CREDENTIALS from %s\", os.Getenv(\"GOOGLE_APPLICATION_CREDENTIALS\"))\n\t}\n\n\tcomputeClient, err := newComputeClientImpl(ctx)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error building compute API client: %v\", err)\n\t}\n\tc.compute = computeClient\n\n\tstorageClient, err := storage.NewClient(ctx)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error building storage API client: %v\", err)\n\t}\n\tc.storage = storageClient\n\n\tiamService, err := newIamClientImpl(ctx)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error building IAM API client: %v\", err)\n\t}\n\tc.iam = iamService\n\n\tdnsClient, err := newDNSClientImpl(ctx)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error building DNS API client: %v\", err)\n\t}\n\tc.dns = dnsClient\n\n\tcloudResourceManager, err := cloudresourcemanager.NewService(ctx)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error building cloudresourcemanager API client: %w\", err)","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gce/gce_cloud.go#L132-L168","documentation":"NewGCECloud wraps storage.NewClient failure while creating the Cloud Storage client (used for asset/state access). It fires when Google credentials/default token source cannot be established; GCE cloud construction aborts after the compute client succeeded.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gce/gce_cloud.go:150 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix Application Default Credentials","Check network access to storage.googleapis.com","Inspect the wrapped error"],"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-12T07:17:12.445Z"}