{"record":{"id":"b8853257fa1273f8","repo":"tinyhumansai/openhuman","slug":"missing-required-string-argument-provider","errorCode":null,"errorMessage":"missing required string argument `provider`","messagePattern":"missing required string argument `provider`","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/security/credentials/tools.rs","lineNumber":167,"sourceCode":"    }\n    fn parameters_schema(&self) -> serde_json::Value {\n        json!({\n            \"type\": \"object\",\n            \"properties\": {\n                \"provider\": { \"type\": \"string\" },\n                \"skill_id\": { \"type\": \"string\" }\n            },\n            \"required\": [\"provider\"]\n        })\n    }\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][credentials] oauth_connect invoked\");\n        let provider = args\n            .get(\"provider\")\n            .and_then(Value::as_str)\n            .map(str::trim)\n            .filter(|s| !s.is_empty())\n            .ok_or_else(|| anyhow::anyhow!(\"missing required string argument `provider`\"))?;\n        let skill_id = args.get(\"skill_id\").and_then(Value::as_str);\n        emit!(\n            credentials::oauth_connect(&self.config, provider, skill_id, None, None).await,\n            \"oauth_connect_url\"\n        )\n    }\n}\n\n/// List available OAuth integrations.\npub struct OAuthListTool {\n    config: Arc<Config>,\n}\nimpl OAuthListTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }\n}\n#[async_trait]","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/security/credentials/tools.rs#L149-L185","documentation":"The credentials `oauth_connect` tool was called without a usable `provider` string — the arg is missing, not a string, or trims to empty. Provider is the only required argument, and without it the OAuth connect-url lookup has nothing to resolve, so the guard fires before any flow starts.","triggerScenarios":"Thrown at src/openhuman/security/credentials/tools.rs:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass `provider` as a non-empty string naming an OAuth provider","Check the provider spelling against the supported provider list"],"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"}