tinyhumansai/openhuman · error · anyhow::Error

Unknown action '{action}'. Valid: get, set, disable, list_se

Error message

Unknown action '{action}'. Valid: get, set, disable, list_services, apply_env, clear_env

What it means

The proxy_config dispatcher lowercased the action string and found no matching handler among get, set, disable, list_services, apply_env and clear_env, so the tool cannot decide what to do and rejects the call.

Source

Thrown at src/openhuman/tools/impl/system/proxy_config.rs:392

            .to_ascii_lowercase();

        let result = match action.as_str() {
            "get" => self.handle_get(),
            "list_services" => self.handle_list_services(),
            "set" | "disable" | "apply_env" | "clear_env" => {
                if let Some(blocked) = self.require_write_access() {
                    return Ok(blocked);
                }

                match action.as_str() {
                    "set" => self.handle_set(&args).await,
                    "disable" => self.handle_disable(&args).await,
                    "apply_env" => self.handle_apply_env(),
                    "clear_env" => self.handle_clear_env(),
                    _ => unreachable!("handled above"),
                }
            }
            _ => anyhow::bail!(
                "Unknown action '{action}'. Valid: get, set, disable, list_services, apply_env, clear_env"
            ),
        };

        match result {
            Ok(outcome) => Ok(outcome),
            Err(error) => Ok(ToolResult::error(error.to_string())),
        }
    }
}

#[cfg(test)]
#[path = "proxy_config_tests.rs"]
mod tests;

View on GitHub (pinned to 7491200858)

Solutions

  1. Use one of: get, set, disable, list_services, apply_env, clear_env
  2. Check the action field for typos
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/tools/impl/system/proxy_config.rs:392 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/222c7af41841046b. Report an issue: GitHub.