{"record":{"id":"eb908165cc99cdc0","repo":"zellij-org/zellij","slug":"no-port-in-url","errorCode":null,"errorMessage":"No port in URL","messagePattern":"No port in URL","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"zellij-utils/src/shared.rs","lineNumber":225,"sourceCode":"        has_certificate,\n        enforce_https_for_localhost,\n    )\n}\n\npub struct ServerAddress {\n    pub ip: String,\n    pub port: u16,\n}\n\npub fn parse_base_url(url: &str) -> Result<ServerAddress> {\n    let url = url::Url::parse(url)?;\n    let ip = url\n        .host_str()\n        .ok_or_else(|| anyhow!(\"No host in URL\"))?\n        .to_string();\n    let port = url\n        .port_or_known_default()\n        .ok_or_else(|| anyhow!(\"No port in URL\"))?;\n\n    Ok(ServerAddress { ip, port })\n}\n","sourceCodeStart":207,"sourceCodeEnd":229,"githubUrl":"https://github.com/zellij-org/zellij/blob/5cb5df5cce4e16c5d1c57c7c062e4a90a7823c41/zellij-utils/src/shared.rs#L207-L229","documentation":"Error \"No port in URL\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs at zellij-utils/src/shared.rs:225 when the operation fails: \"No port in URL\". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.","commonSituations":"Misconfigured web/client URL setting.","solutions":["Provide a URL including both host and port, e.g. http://127.0.0.1:8080.","Check the configured URL for typos."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5cb5df5cce4e16c5d1c57c7c062e4a90a7823c41","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}