{"record":{"id":"c02372941afe0faa","repo":"tinyhumansai/openhuman","slug":"browser-computer-use-endpoint-must-include-host","errorCode":null,"errorMessage":"browser.computer_use.endpoint must include host","messagePattern":"browser\\.computer_use\\.endpoint must include host","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/browser.rs","lineNumber":174,"sourceCode":"        let endpoint = self.computer_use.endpoint.trim();\n        if endpoint.is_empty() {\n            anyhow::bail!(\"browser.computer_use.endpoint cannot be empty\");\n        }\n\n        let parsed = reqwest::Url::parse(endpoint).map_err(|_| {\n            anyhow::anyhow!(\n                \"Invalid browser.computer_use.endpoint: '{endpoint}'. Expected http(s) URL\"\n            )\n        })?;\n\n        let scheme = parsed.scheme();\n        if scheme != \"http\" && scheme != \"https\" {\n            anyhow::bail!(\"browser.computer_use.endpoint must use http:// or https://\");\n        }\n\n        let host = parsed\n            .host_str()\n            .ok_or_else(|| anyhow::anyhow!(\"browser.computer_use.endpoint must include host\"))?;\n\n        let host_is_private = is_private_host(host);\n        if !self.computer_use.allow_remote_endpoint && !host_is_private {\n            anyhow::bail!(\n                \"browser.computer_use.endpoint host '{host}' is public. Set browser.computer_use.allow_remote_endpoint=true to allow it\"\n            );\n        }\n\n        if self.computer_use.allow_remote_endpoint && !host_is_private && scheme != \"https\" {\n            anyhow::bail!(\n                \"browser.computer_use.endpoint must use https:// when allow_remote_endpoint=true and host is public\"\n            );\n        }\n\n        Ok(parsed)\n    }\n\n    fn computer_use_available(&self) -> anyhow::Result<bool> {","sourceCodeStart":156,"sourceCodeEnd":192,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/browser.rs#L156-L192","documentation":"Config validation in computer_use_endpoint_url: the endpoint parsed as a URL and used http(s), but has no host component (e.g. \"https:///path\"). The host check runs after scheme validation and before the client is built.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/browser.rs:174 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include a hostname in browser.computer_use.endpoint (e.g. http://127.0.0.1:8000)","Correct the endpoint URL in config and retry"],"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-14T05:17:10.506Z"}