zeroclaw-labs/zeroclaw · error
Host '{host}' is in {tool_name}.blocked_domains
Error message
Host '{host}' is in {tool_name}.blocked_domains What it means
Error "Host '{host}' is in {tool_name}.blocked_domains" thrown in zeroclaw-labs/zeroclaw.
Source
Thrown at crates/zeroclaw-tools/src/web_fetch.rs:728
anyhow::bail!("URL cannot contain whitespace");
}
if !url.starts_with("http://") && !url.starts_with("https://") {
anyhow::bail!("Only http:// and https:// URLs are allowed");
}
if allowed_domains.is_empty() {
anyhow::bail!(
"{tool_name} tool is enabled but no allowed_domains are configured. \
Add [{tool_name}].allowed_domains in config.toml"
);
}
let host = extract_host(url)?;
// blocked_domains always takes precedence
if domain_guard::host_matches_allowlist(&host, blocked_domains) {
anyhow::bail!("Host '{host}' is in {tool_name}.blocked_domains");
}
let host_is_private_or_local = domain_guard::is_private_or_local_host(&host);
let private_match = private_allowlist_match(&host, allowed_private_hosts);
// An explicit entry (a specific host/IP or suffix) is a deliberate per-host
// carve-out; the "*" wildcard blanket-tolerates a private/internal
// resolution for any host. The distinction only affects the WARN below.
let private_explicit = matches!(private_match, PrivateAllow::Explicit);
// Either an explicit entry or "*" tolerates a private/internal host: it lifts
// the literal private-host block and skips the resolved-IP public check.
let private_tolerated = !matches!(private_match, PrivateAllow::None);
if host_is_private_or_local && !private_tolerated {
anyhow::bail!(
"Blocked local/private host: {host}. \
To allow this host, add it (or \"*\") to \
{tool_name}.allowed_private_hosts in config.toml"
);View on GitHub (pinned to 88bb9c8533)
Solutions
- Remove the host from the tool's blocked_domains, or fetch a different host.
When it happens
Trigger: Thrown at crates/zeroclaw-tools/src/web_fetch.rs:728 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/08332f12e355321f.
Report an issue: GitHub.