tinyhumansai/openhuman · error
missing value for --params
Error message
missing value for --params
What it means
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 "{}").
Solutions
- Supply a JSON object string, e.g. `--params '{"limit":10}'`
- Omit --params entirely to send the default empty object {}
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/cli.rs:474 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/3d8800226c81a7c5.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/cli.rs:474
fn run_call_command(args: &[String]) -> Result<()> {
let mut method: Option<String> = None;
let mut params = "{}".to_string();
let mut i = 0usize;
while i < args.len() {
match args[i].as_str() {
"--method" => {
method = Some(
args.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --method"))?
.clone(),
);
i += 2;
}
"--params" => {
params = args
.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --params"))?
.clone();
i += 2;
}
"-h" | "--help" => {
println!("Usage: openhuman call --method <name> [--params '<json>']");
return Ok(());
}
other => return Err(anyhow::anyhow!("unknown call arg: {other}")),
}
}
let method = method.ok_or_else(|| anyhow::anyhow!("--method is required"))?;
let params = parse_json_params(¶ms).map_err(anyhow::Error::msg)?;
// Raw calls bypass namespace parsing, but not the configured memory-driver
// binding. Without this gate an absent capability could still reach a
// destructive embedded handler because plain CLI invocations have no
// ambient CoreContext to filter the registry.View on GitHub (pinned to 7491200858)