tinyhumansai/openhuman · error
missing value for --method
Error message
missing value for --method
What it means
`openhuman call --method` requires the RPC method name as the next token; the flag was the last argument. The value is consumed unconditionally, so only end-of-args triggers this — a following flag would be taken as the method name and fail later at registry lookup.
Source
Thrown at src/core/cli.rs:466
/// Handles the `call` subcommand to invoke a JSON-RPC method directly from the CLI.
///
/// This is used for one-off commands and debugging, bypassing the HTTP transport
/// and calling the internal `invoke_method` directly.
///
/// # Arguments
///
/// * `args` - Command-line arguments specifying the method and parameters.
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}")),
}
}View on GitHub (pinned to a221052e0d)
Solutions
- Pass the method: `openhuman call --method openhuman.config_get`
- Check usage with `openhuman call --help`
- If you typed only `--params`, remember `--method` is required (it has no default)
Example fix
# before
openhuman call --method
# after
openhuman call --method openhuman.config_get --params '{}' Defensive patterns
Strategy: validation
Validate before calling
# bash: refuse to invoke call without a method
METHOD="${METHOD:?openhuman call requires --method <rpc-method>}"
openhuman call --method "$METHOD" Prevention
- Keep --method and its value as an adjacent array-element pair
- --method is mandatory (no default); --params is the optional one
- Verify method names against `openhuman --help` before scripting them
When it happens
Trigger: `openhuman call --method` as the final token; a script dropping the method half of the pair.
Common situations: Building `call` invocations from variables with the method empty/missing; command history editing that deletes the value.
Related errors
- missing value for --params
- unknown call arg: {other}
- --method is required
- audio blob is empty
- voice_not_compiled
AI-assisted analysis of tinyhumansai/openhuman@a221052e0d (2026-08-16).
Data as JSON: /api/errors/60a1df0a4b539a8e.
Report an issue: GitHub.