{"record":{"id":"58702dc8a71c419c","repo":"rancher/rancher","slug":"the-oci-artifact-s-has-size-more-than-d-which-is","errorCode":null,"errorMessage":"the oci artifact %s has size more than %d which is not supported","messagePattern":"the oci artifact (.+?) has size more than (.+?) which is not supported","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/catalogv2/oci/oci.go","lineNumber":65,"sourceCode":"\n\t// Create an oras repository\n\torasRepository, err := ociClient.GetOrasRepository()\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create an OCI repository for url %s: %w\", chartURL, err)\n\t}\n\n\t// Download the oci artifact manifest\n\tmemoryStore := memory.New()\n\tmanifest, err := oras.Copy(ctx, orasRepository, ociClient.tag, memoryStore, \"\", oras.CopyOptions{\n\t\tCopyGraphOptions: oras.CopyGraphOptions{\n\t\t\tPreCopy: func(ctx context.Context, desc ocispecv1.Descriptor) error {\n\t\t\t\t// Download only helm chart related descriptors.\n\t\t\t\tif desc.MediaType == ocispecv1.MediaTypeImageManifest ||\n\t\t\t\t\tdesc.MediaType == registry.ChartLayerMediaType {\n\t\t\t\t\t// We cannot load huge amounts of data into the memory\n\t\t\t\t\t// and so we are defining a limit before fetching.\n\t\t\t\t\tif desc.Size > maxHelmChartTarSize {\n\t\t\t\t\t\treturn fmt.Errorf(\"the oci artifact %s has size more than %d which is not supported\", chartURL, maxHelmChartTarSize)\n\t\t\t\t\t}\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\n\t\t\t\treturn oras.SkipNode\n\t\t\t},\n\t\t},\n\t})\n\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to oras copy the remote OCI artifact %s: %w\", chartURL, err)\n\t}\n\t// Fetch the manifest blob of the oci artifact\n\tmanifestBlob, err := content.FetchAll(ctx, memoryStore, manifest)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"unable to fetch the manifest blob of %s: %w\", chartURL, err)\n\t}\n\tvar manifestJSON ocispecv1.Manifest","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/rancher/rancher/blob/932558d4e68565aff2d2f36e89ec4a391b06e7c5/pkg/catalogv2/oci/oci.go#L47-L83","documentation":"Error \"the oci artifact %s has size more than %d which is not supported\" thrown in rancher/rancher.","triggerScenarios":"Thrown at pkg/catalogv2/oci/oci.go:65 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":"932558d4e68565aff2d2f36e89ec4a391b06e7c5","analyzedAt":"2026-08-16T04:37:02.125Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}