tinyhumansai/openhuman · error · anyhow::Error
invalid target: {e}
Error message
invalid target: {e} What it means
In the add tool's execute: an optional 'target' argument was supplied but failed to parse into the expected target type. Target is optional — supplying an invalid one is rejected rather than silently ignored.
Source
Thrown at src/openhuman/integrations/task_sources/tools.rs:384
"max_tasks_per_fetch": { "type": "integer", "minimum": 1 },
"assigned_executor": { "type": "string" }
},
"required": ["provider", "filter"]
})
}
fn permission_level(&self) -> PermissionLevel {
PermissionLevel::Write
}
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
log::debug!("[tool][task_sources] add invoked");
let provider = parse_provider(&args)?;
let filter = parse_filter(&args)?;
let target = match args.get("target") {
Some(v) => Some(
serde_json::from_value(v.clone())
.map_err(|e| anyhow::anyhow!("invalid target: {e}"))?,
),
None => None,
};
let max_tasks = opt_u64(&args, "max_tasks_per_fetch").map(|v| v as u32);
emit!(
ops::add(
&self.config,
provider,
opt_str(&args, "connection_id"),
opt_str(&args, "name"),
filter,
opt_u64(&args, "interval_secs"),
target,
max_tasks,
opt_str(&args, "assigned_executor"),
)
.await,
"task_source_add"View on GitHub (pinned to 7491200858)
Solutions
- Fix the target value's shape to match the tool's target schema
- Omit 'target' entirely to use the default targeting
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/integrations/task_sources/tools.rs:384 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/dc55d4d5af4e621e.
Report an issue: GitHub.