{"record":{"id":"bf753961242bf49e","repo":"rancher/rancher","slug":"invalid-value-for-maxcpucores-query-param","errorCode":null,"errorMessage":"invalid value for maxCpuCores query param","messagePattern":"invalid value for maxCpuCores query param","errorType":"validation","errorClass":null,"httpStatus":400,"severity":"error","filePath":"pkg/api/norman/customization/alibaba/listers.go","lineNumber":134,"sourceCode":"\tif cpuArch != \"\" {\n\t\trequest.CpuArchitecture = tea.String(cpuArch)\n\t}\n\n\tminCPUStr := req.URL.Query().Get(\"minCpuCores\")\n\tif minCPUStr != \"\" {\n\t\tminCPU, err := strconv.ParseInt(minCPUStr, 10, 32)\n\t\tif err != nil {\n\t\t\treturn nil, http.StatusBadRequest, errors.New(\"invalid value for minCpuCores query param\")\n\t\t}\n\t\tminCPU32 := int32(minCPU)\n\t\trequest.MinimumCpuCoreCount = &minCPU32\n\t}\n\n\tmaxCPUStr := req.URL.Query().Get(\"maxCpuCores\")\n\tif maxCPUStr != \"\" {\n\t\tmaxCPU, err := strconv.ParseInt(maxCPUStr, 10, 32)\n\t\tif err != nil {\n\t\t\treturn nil, http.StatusBadRequest, errors.New(\"invalid value for maxCpuCores query param\")\n\t\t}\n\t\tmaxCPU32 := int32(maxCPU)\n\t\trequest.MaximumCpuCoreCount = &maxCPU32\n\t}\n\n\tminMemoryStr := req.URL.Query().Get(\"minMemorySize\")\n\tif minMemoryStr != \"\" {\n\t\tminMemory, err := strconv.ParseFloat(minMemoryStr, 32)\n\t\tif err != nil {\n\t\t\treturn nil, http.StatusBadRequest, errors.New(\"invalid value for minMemorySize query param\")\n\t\t}\n\t\tminMemory32 := float32(minMemory)\n\t\trequest.MinimumMemorySize = &minMemory32\n\t}\n\n\tmaxMemoryStr := req.URL.Query().Get(\"maxMemorySize\")\n\tif maxMemoryStr != \"\" {\n\t\tmaxMemory, err := strconv.ParseFloat(maxMemoryStr, 32)","sourceCodeStart":116,"sourceCodeEnd":152,"githubUrl":"https://github.com/rancher/rancher/blob/932558d4e68565aff2d2f36e89ec4a391b06e7c5/pkg/api/norman/customization/alibaba/listers.go#L116-L152","documentation":"Thrown when json.Unmarshal fails on the manifest blob fetched into memory (pkg/catalogv2/oci/client.go:172), i.e. the stored bytes are not a valid ocispecv1.Manifest JSON document. The media-type check already passed, so this means structurally invalid JSON or a manifest shape the OCI struct cannot decode.","triggerScenarios":"The manifest blob is corrupt or truncated — a bad push, a registry backend returning an HTML error page captured as the blob, or a proxy mangling the response body.","commonSituations":"Corrupted artifact from an interrupted push; registries behind misconfigured reverse proxies that inject error pages with 200 status; extremely rare on healthy registries.","solutions":["Inspect the raw manifest: 'oras manifest fetch <url>' — if it is not clean JSON, the artifact is broken","Re-push the chart with helm push to replace the corrupt manifest","Fix any reverse proxy in front of the registry that rewrites or truncates response bodies"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"var syn *json.SyntaxError\nif errors.As(err, &syn) {\n\t// blob bytes are not JSON: artifact or proxy is corrupt.\n\t// Do not retry blindly; verify the manifest out-of-band, then re-push.\n}","preventionTips":["Ensure reverse proxies in front of the registry pass response bodies through untouched","Verify pushes completed successfully before tagging a release","Smoke-test artifacts after publish with 'oras manifest fetch'"],"tags":["oci","json","manifest","corruption","go"],"backgroundTag":null,"analyzedSha":"932558d4e68565aff2d2f36e89ec4a391b06e7c5","analyzedAt":"2026-08-16T04:37:02.125Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}