tinyhumansai/openhuman · error
Only https:// URLs are allowed
Error message
Only https:// URLs are allowed
What it means
validate_url requires https:// for browser_open (stricter than the automation tool). The tool hands the URL to a real user-facing browser with no DOM sandbox, so cleartext http and other schemes are disallowed.
Source
Thrown at src/openhuman/tools/impl/browser/browser_open.rs:33
Self {
security,
allowed_domains: normalize_allowed_domains(allowed_domains),
}
}
fn validate_url(&self, raw_url: &str) -> anyhow::Result<String> {
let url = raw_url.trim();
if url.is_empty() {
anyhow::bail!("URL cannot be empty");
}
if url.chars().any(char::is_whitespace) {
anyhow::bail!("URL cannot contain whitespace");
}
if !url.starts_with("https://") {
anyhow::bail!("Only https:// URLs are allowed");
}
if self.allowed_domains.is_empty() {
anyhow::bail!(
"Browser tool is enabled but no allowed_domains are configured. Add [browser].allowed_domains in config.toml"
);
}
let host = extract_host(url)?;
if is_private_or_local_host(&host) {
anyhow::bail!("Blocked local/private host: {host}");
}
if !host_matches_allowlist(&host, &self.allowed_domains) {
anyhow::bail!("Host '{host}' is not in browser.allowed_domains");
}
View on GitHub (pinned to 7491200858)
Solutions
- Use an https:// URL.
- Open http URLs manually in the browser if strictly needed.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/tools/impl/browser/browser_open.rs:33 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/86e2a5d2b5442379.
Report an issue: GitHub.