{"record":{"id":"cb811e9034deda13","repo":"tinyhumansai/openhuman","slug":"invalid-format-other","errorCode":null,"errorMessage":"invalid format `{other}`","messagePattern":"invalid format `(.+?)`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/voice/audio_toolkit/tools/podcast.rs","lineNumber":230,"sourceCode":"        .filter(|s| !s.is_empty())\n        .map(str::to_string)\n}\n\nfn optional_format(\n    args: &serde_json::Value,\n    key: &str,\n) -> anyhow::Result<Option<crate::openhuman::voice::audio_toolkit::AudioFormat>> {\n    let Some(raw) = args.get(key).and_then(|v| v.as_str()) else {\n        return Ok(None);\n    };\n    match raw.trim() {\n        \"mp3\" => Ok(Some(\n            crate::openhuman::voice::audio_toolkit::AudioFormat::Mp3,\n        )),\n        \"wav\" => Ok(Some(\n            crate::openhuman::voice::audio_toolkit::AudioFormat::Wav,\n        )),\n        other => Err(anyhow::anyhow!(\"invalid format `{other}`\")),\n    }\n}\n","sourceCodeStart":212,"sourceCodeEnd":233,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/voice/audio_toolkit/tools/podcast.rs#L212-L233","documentation":"The podcast tool's optional audio-format parameter only accepts \"mp3\" or \"wav\"; this fires when a format string was supplied but matches neither (case-sensitive after trim). Generation has not started.","triggerScenarios":"Thrown at src/openhuman/voice/audio_toolkit/tools/podcast.rs:230 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use \"mp3\" or \"wav\" (lowercase) for the format parameter","Omit the format parameter to use the default"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}