{"record":{"id":"f302f1605d46f5fc","repo":"pola-rs/polars","slug":"invalid-value-for-name-x-f302f1","errorCode":null,"errorMessage":"invalid value for {name}: {x}","messagePattern":"invalid value for (.+?): (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-io/src/cloud/http_rate_limit.rs","lineNumber":201,"sourceCode":"                    floor_rate\n                },\n                ceiling_rate: parse_env_var(DEFAULT_CEILING_RATE, \"POLARS_CLOUD_CEILING_RATE\"),\n                horizon: Duration::from_millis(parse_env_var(\n                    DEFAULT_RATE_HORIZON_MS,\n                    \"POLARS_CLOUD_RATE_HORIZON_MS\",\n                )),\n                max_wait: Duration::from_millis(parse_env_var(\n                    DEFAULT_RATE_MAX_WAIT_MS,\n                    \"POLARS_CLOUD_RATE_MAX_WAIT_MS\",\n                )),\n                init_policy: InitPolicy::Inherit,\n            });\n\n        fn parse_env_var<T: FromStr>(default: T, name: &'static str) -> T {\n            std::env::var(name).map_or(default, |x| {\n                x.parse::<T>()\n                    .ok()\n                    .unwrap_or_else(|| panic!(\"invalid value for {name}: {x}\"))\n            })\n        }\n    }\n}\n\n/// Read-only view of the pacing budget including the learned rate-limit signal\n/// for internal consumers (e.g., ConcurrencyController).\n/// The cells contains learned rates (f64 bits in an AtomicU64), and are updated\n/// by the AIMD loop only.\n/// Valid for the process lifetime: object store rebuilds can rotate behind the\n/// cells rather than replacing them.\n#[derive(Debug, Clone)]\npub struct PacingBudget {\n    rate_bits: RateCell,\n    horizon: Duration,\n}\n\nimpl PacingBudget {","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/pola-rs/polars/blob/68506541d2de983056c9eb244e1ea05fab377dfc/crates/polars-io/src/cloud/http_rate_limit.rs#L183-L219","documentation":"Environment-variable parsing guard in the HTTP rate-limit configuration (parse_env_var): the value read from a POLARS_CLOUD_* env var (e.g. POLARS_CLOUD_CEILING_RATE or POLARS_CLOUD_RATE_HORIZON_MS) cannot be parsed as the expected numeric type. The env var name and raw value are the faulty input.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"invalid value for {name}: {x}\". Typical triggers: unsupported dtype or feature-gated code path reached at runtime, invalid user input or environment variable value, calling API methods in the wrong order or on mismatched types, or data (lengths, offsets, ranges) violating the function's preconditions.","commonSituations":"Encountered when input data or configuration does not meet the preconditions of the throwing code path (\"invalid value for {name}: {x}\"). Common cases: missing Cargo feature flags, mismatched dtypes/lengths between arrays or series, out-of-range temporal values, malformed environment variables, or operations on unsupported/complex nested types.","solutions":["Set the named rate-limit environment variable to a valid positive number.","Unset the variable to use the default HTTP rate limit."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"68506541d2de983056c9eb244e1ea05fab377dfc","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}