{"record":{"id":"02da5cb5d8eee902","repo":"helm/helm","slug":"no-cached-repo-found-try-helm-repo-update-w","errorCode":null,"errorMessage":"no cached repo found. (try 'helm repo update'): %w","messagePattern":"no cached repo found\\. \\(try 'helm repo update'\\): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/downloader/chart_downloader.go","lineNumber":461,"sourceCode":"\t}\n\n\tif r != nil && r.Config != nil {\n\t\tif r.Config.CertFile != \"\" || r.Config.KeyFile != \"\" || r.Config.CAFile != \"\" {\n\t\t\tc.Options = append(c.Options, getter.WithTLSClientConfig(r.Config.CertFile, r.Config.KeyFile, r.Config.CAFile))\n\t\t}\n\t\tif r.Config.Username != \"\" && r.Config.Password != \"\" {\n\t\t\tc.Options = append(c.Options,\n\t\t\t\tgetter.WithBasicAuth(r.Config.Username, r.Config.Password),\n\t\t\t\tgetter.WithPassCredentialsAll(r.Config.PassCredentialsAll),\n\t\t\t)\n\t\t}\n\t}\n\n\t// Next, we need to load the index, and actually look up the chart.\n\tidxFile := filepath.Join(c.RepositoryCache, helmpath.CacheIndexFile(r.Config.Name))\n\ti, err := repo.LoadIndexFile(idxFile)\n\tif err != nil {\n\t\treturn \"\", u, fmt.Errorf(\"no cached repo found. (try 'helm repo update'): %w\", err)\n\t}\n\n\tcv, err := i.Get(chartName, version)\n\tif err != nil {\n\t\treturn \"\", u, fmt.Errorf(\"chart %q matching %s not found in %s index. (try 'helm repo update'): %w\", chartName, version, r.Config.Name, err)\n\t}\n\n\tif len(cv.URLs) == 0 {\n\t\treturn \"\", u, fmt.Errorf(\"chart %q has no downloadable URLs\", ref)\n\t}\n\n\t// TODO: Seems that picking first URL is not fully correct\n\tresolvedURL, err := repo.ResolveReferenceURL(rc.URL, cv.URLs[0])\n\tif err != nil {\n\t\treturn cv.Digest, u, fmt.Errorf(\"invalid chart URL format: %s\", ref)\n\t}\n\n\tloc, err := url.Parse(resolvedURL)","sourceCodeStart":443,"sourceCodeEnd":479,"githubUrl":"https://github.com/helm/helm/blob/2a29f1770b62844b27197d2507377361d45ad7c0/pkg/downloader/chart_downloader.go#L443-L479","documentation":"Error \"no cached repo found. (try 'helm repo update'): %w\" thrown in helm/helm.","triggerScenarios":"Thrown at pkg/downloader/chart_downloader.go:461 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":"2a29f1770b62844b27197d2507377361d45ad7c0","analyzedAt":"2026-08-15T22:02:47.490Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}