{"record":{"id":"2401f83e82e11c31","repo":"Zackriya-Solutions/meetily","slug":"invalid-content-range-start","errorCode":null,"errorMessage":"Invalid Content-Range start: {}","messagePattern":"Invalid Content-Range start: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"frontend/src-tauri/src/parakeet_engine/parakeet_engine.rs","lineNumber":218,"sourceCode":"        .strip_prefix(\"bytes \")\n        .ok_or_else(|| anyhow!(\"Content-Range must use bytes: {}\", value))?;\n\n    if let Some(total) = value.strip_prefix(\"*/\") {\n        return total\n            .parse()\n            .map(|total| ContentRange::Unsatisfied { total })\n            .map_err(|e| anyhow!(\"Invalid unsatisfied Content-Range total: {}\", e));\n    }\n\n    let (range, total) = value\n        .split_once('/')\n        .ok_or_else(|| anyhow!(\"Malformed Content-Range: {}\", value))?;\n    let (start, end) = range\n        .split_once('-')\n        .ok_or_else(|| anyhow!(\"Malformed Content-Range range: {}\", value))?;\n    let start = start\n        .parse()\n        .map_err(|e| anyhow!(\"Invalid Content-Range start: {}\", e))?;\n    let end = end\n        .parse()\n        .map_err(|e| anyhow!(\"Invalid Content-Range end: {}\", e))?;\n    let total = total\n        .parse()\n        .map_err(|e| anyhow!(\"Invalid Content-Range total: {}\", e))?;\n    if start > end {\n        return Err(anyhow!(\"Content-Range start exceeds end: {}\", value));\n    }\n\n    Ok(ContentRange::Range { start, end, total })\n}\n\n#[derive(Debug)]\npub enum ParakeetEngineError {\n    ModelNotLoaded,\n    ModelNotFound(String),\n    TranscriptionFailed(String),","sourceCodeStart":200,"sourceCodeEnd":236,"githubUrl":"https://github.com/Zackriya-Solutions/meetily/blob/a2cb62e827da7ef59f65064c97233efb2313878e/frontend/src-tauri/src/parakeet_engine/parakeet_engine.rs#L200-L236","documentation":"Thrown by parse_content_range when the start component of the Content-Range byte range fails integer parsing (u64). The header is structurally splitable but the start offset is not a valid unsigned integer.","triggerScenarios":"Content-Range like 'bytes abc-1023/2048', a value containing whitespace or a '+' sign, or an 'unknown'-style placeholder where a number is expected, during download resume validation.","commonSituations":"Proxy-injected headers with units or comments; non-numeric placeholders from custom servers; locale or encoding issues corrupting digits; hand-edited test fixtures.","solutions":["Log the offending header value (included in the anyhow error context)","Fix the server/proxy to emit plain decimal offsets","Trim whitespace and any 'bytes ' prefix from the header before calling parse_content_range","Verify the mirror with curl -r 0-99 <url> -D -"],"exampleFix":"// before\nlet start: u64 = start_raw.trim().parse().map_err(|e| anyhow!(\"Invalid Content-Range start: {}\", e))?;\n// after (strip 'bytes ' unit prefix first)\nlet start: u64 = start_raw.trim().trim_start_matches(\"bytes \").parse().map_err(|e| anyhow!(\"Invalid Content-Range start: {}\", e))?;","handlingStrategy":"validation","validationCode":"fn start_is_numeric(v: &str) -> bool { v.trim().trim_start_matches(\"bytes \").split('/').next().and_then(|r| r.split('-').next()).map_or(false, |s| s.trim().parse::<u64>().is_ok()) }","typeGuard":null,"tryCatchPattern":"match parse_content_range(v) { Err(e) if e.to_string().contains(\"start\") => { log::error!(\"server sent non-numeric start in Content-Range: {v}\"); fall_back_to_full_download() }, other => other }","preventionTips":["Trim and strip unit prefixes from header values before parsing","Validate mirror headers once at configuration time","Avoid proxies that rewrite or annotate range headers"],"tags":["http","content-range","parsing"],"backgroundTag":"invalid-argument-format","analyzedSha":"a2cb62e827da7ef59f65064c97233efb2313878e","analyzedAt":"2026-09-12T11:12:14.152Z","contentChangedAt":"2026-09-12T11:12:14.152Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}