{"record":{"id":"2ae2a79154378626","repo":"tinyhumansai/openhuman","slug":"invalid-filter-e","errorCode":null,"errorMessage":"invalid filter: {e}","messagePattern":"invalid filter: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/integrations/task_sources/tools.rs","lineNumber":56,"sourceCode":"fn opt_str(args: &serde_json::Value, key: &str) -> Option<String> {\n    args.get(key)\n        .and_then(serde_json::Value::as_str)\n        .map(str::trim)\n        .filter(|s| !s.is_empty())\n        .map(str::to_string)\n}\n\nfn parse_provider(args: &serde_json::Value) -> anyhow::Result<ProviderSlug> {\n    let raw = read_required_str(args, \"provider\")?;\n    ProviderSlug::parse(&raw).map_err(|e| anyhow::anyhow!(\"invalid provider: {e}\"))\n}\n\nfn parse_filter(args: &serde_json::Value) -> anyhow::Result<FilterSpec> {\n    let val = args\n        .get(\"filter\")\n        .cloned()\n        .ok_or_else(|| anyhow::anyhow!(\"missing required object argument `filter`\"))?;\n    serde_json::from_value(val).map_err(|e| anyhow::anyhow!(\"invalid filter: {e}\"))\n}\n\nmacro_rules! emit {\n    ($outcome:expr, $name:literal) => {{\n        let outcome = $outcome.map_err(|e| anyhow::anyhow!(concat!($name, \": {}\"), e))?;\n        Ok(ToolResult::success(serde_json::to_string(&outcome.value)?))\n    }};\n}\n\n/// List configured external task sources.\npub struct TaskSourceListTool {\n    config: Arc<Config>,\n}\n\nimpl TaskSourceListTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/integrations/task_sources/tools.rs#L38-L74","documentation":"parse_filter: the 'filter' value was present but serde failed to deserialize it into FilterSpec — typically wrong field names, wrong types, or unknown/misspelled keys. The serde error text is appended.","triggerScenarios":"Thrown at src/openhuman/integrations/task_sources/tools.rs:56 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Match FilterSpec's expected field names and types exactly (camelCase where applicable)","Read the serde error {e} for the exact offending field","Remove extra/unknown fields if the spec is strict"],"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"}