{"record":{"id":"edd80415b6f5c481","repo":"tinyhumansai/openhuman","slug":"missing-required-object-argument-payload","errorCode":null,"errorMessage":"missing required object argument `payload`","messagePattern":"missing required object argument `payload`","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/hosted/billing/tools.rs","lineNumber":470,"sourceCode":"    }\n    fn parameters_schema(&self) -> serde_json::Value {\n        json!({\n            \"type\": \"object\",\n            \"properties\": { \"payload\": { \"type\": \"object\" } },\n            \"required\": [\"payload\"]\n        })\n    }\n    fn permission_level(&self) -> PermissionLevel {\n        PermissionLevel::Write\n    }\n    fn external_effect(&self) -> bool {\n        true\n    }\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        let payload = args\n            .get(\"payload\")\n            .cloned()\n            .ok_or_else(|| anyhow::anyhow!(\"missing required object argument `payload`\"))?;\n        emit!(\n            billing::update_auto_recharge(&self.config, payload).await,\n            \"billing_update_auto_recharge\"\n        )\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n    use crate::openhuman::tools::traits::ToolScope;\n\n    fn cfg() -> Arc<Config> {\n        Arc::new(Config::default())\n    }\n\n    #[test]\n    fn names_and_levels() {","sourceCodeStart":452,"sourceCodeEnd":488,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/hosted/billing/tools.rs#L452-L488","documentation":"A billing webhook/mutator tool requiring a `payload` object was invoked without it (missing, or the cloned value absent). Guard before the external-effect call; the payload shape beyond `object` is validated downstream by the domain/backend.","triggerScenarios":"Thrown at src/openhuman/hosted/billing/tools.rs:470 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include `payload` as a JSON object with the fields the billing endpoint expects"],"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"}