{"record":{"id":"466f5f9ca880bcaf","repo":"rancher/rancher","slug":"minwait-must-be-at-least-1-second","errorCode":null,"errorMessage":"minWait must be at least 1 second","messagePattern":"minWait must be at least 1 second","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/controllers/dashboard/helm/repo_oci.go","lineNumber":388,"sourceCode":"\t// Default Values for exponentialBackOff function which is used\n\t// to retry an HTTP call when 429 response code is hit.\n\n\tpolicy := defaultOCIRetryPolicy\n\tif !registry.IsOCI(clusterRepo.Spec.URL) {\n\t\tpolicy = defaultHandlerErrRetryPolicy\n\t}\n\n\tif clusterRepo.Spec.ExponentialBackOffValues != nil {\n\t\t// Set MaxRetry if specified and valid\n\t\tif clusterRepo.Spec.ExponentialBackOffValues.MaxRetries > 0 {\n\t\t\tpolicy.MaxRetry = clusterRepo.Spec.ExponentialBackOffValues.MaxRetries\n\t\t}\n\n\t\t// Set MinWait if specified and valid\n\t\tif clusterRepo.Spec.ExponentialBackOffValues.MinWait >= 1 {\n\t\t\tpolicy.MinWait = time.Duration(clusterRepo.Spec.ExponentialBackOffValues.MinWait) * time.Second\n\t\t} else if clusterRepo.Spec.ExponentialBackOffValues.MinWait != 0 {\n\t\t\treturn policy, errors.New(\"minWait must be at least 1 second\")\n\t\t}\n\n\t\t// Set MaxWait if specified and valid\n\t\tif clusterRepo.Spec.ExponentialBackOffValues.MaxWait > 0 {\n\t\t\tpolicy.MaxWait = time.Duration(clusterRepo.Spec.ExponentialBackOffValues.MaxWait) * time.Second\n\t\t}\n\t}\n\n\t// Ensure MaxWait is not less than MinWait\n\tif policy.MaxWait < policy.MinWait {\n\t\treturn policy, errors.New(\"maxWait must be greater than or equal to minWait\")\n\t}\n\n\treturn policy, nil\n}\n","sourceCodeStart":370,"sourceCodeEnd":404,"githubUrl":"https://github.com/rancher/rancher/blob/932558d4e68565aff2d2f36e89ec4a391b06e7c5/pkg/controllers/dashboard/helm/repo_oci.go#L370-L404","documentation":"Error \"minWait must be at least 1 second\" thrown in rancher/rancher.","triggerScenarios":"Thrown at pkg/controllers/dashboard/helm/repo_oci.go:388 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"}