{"record":{"id":"b92dcc2303b8fdcb","repo":"tinyhumansai/openhuman","slug":"browser-computer-use-endpoint-must-use-http-or","errorCode":null,"errorMessage":"browser.computer_use.endpoint must use http:// or https://","messagePattern":"browser\\.computer_use\\.endpoint must use http:// or https://","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/tools/impl/browser/browser.rs","lineNumber":169,"sourceCode":"    fn computer_use_endpoint_url(&self) -> anyhow::Result<reqwest::Url> {\n        if self.computer_use.timeout_ms == 0 {\n            anyhow::bail!(\"browser.computer_use.timeout_ms must be > 0\");\n        }\n\n        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        }","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/tools/impl/browser/browser.rs#L151-L187","documentation":"computer_use_endpoint_url rejects an endpoint whose parsed URL scheme is neither http nor https. This is a config validation guard: schemes like file:// or ws:// would be mis-handled by the reqwest client used to reach the sidecar.","triggerScenarios":"Thrown at src/openhuman/tools/impl/browser/browser.rs:169 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an http:// or https:// URL for browser.computer_use.endpoint.","Correct the scheme typo in the configured endpoint."],"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"}