{"record":{"id":"3d8800226c81a7c5","repo":"tinyhumansai/openhuman","slug":"missing-value-for-params","errorCode":null,"errorMessage":"missing value for --params","messagePattern":"missing value for --params","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":474,"sourceCode":"fn run_call_command(args: &[String]) -> Result<()> {\n    let mut method: Option<String> = None;\n    let mut params = \"{}\".to_string();\n\n    let mut i = 0usize;\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--method\" => {\n                method = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow::anyhow!(\"missing value for --method\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--params\" => {\n                params = args\n                    .get(i + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --params\"))?\n                    .clone();\n                i += 2;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman call --method <name> [--params '<json>']\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown call arg: {other}\")),\n        }\n    }\n\n    let method = method.ok_or_else(|| anyhow::anyhow!(\"--method is required\"))?;\n    let params = parse_json_params(&params).map_err(anyhow::Error::msg)?;\n\n    // Raw calls bypass namespace parsing, but not the configured memory-driver\n    // binding. Without this gate an absent capability could still reach a\n    // destructive embedded handler because plain CLI invocations have no\n    // ambient CoreContext to filter the registry.","sourceCodeStart":456,"sourceCodeEnd":492,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L456-L492","documentation":"Sentinel anyhow error from the `openhuman call` argument parser: --params was supplied as the final argument with no value following it, so args.get(i + 1) is None. Usage error only — no RPC was made. The parser expects --method and --params each followed by exactly one value (params defaults to \"{}\").","triggerScenarios":"Thrown at src/core/cli.rs:474 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply a JSON object string, e.g. `--params '{\"limit\":10}'`","Omit --params entirely to send the default empty object {}"],"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-23T08:17:48.524Z"}