zellij-org/zellij · error · anyhow::Error
No port in URL
Error message
No port in URL
What it means
Error "No port in URL" thrown in zellij-org/zellij.
Source
Thrown at zellij-utils/src/shared.rs:225
has_certificate,
enforce_https_for_localhost,
)
}
pub struct ServerAddress {
pub ip: String,
pub port: u16,
}
pub fn parse_base_url(url: &str) -> Result<ServerAddress> {
let url = url::Url::parse(url)?;
let ip = url
.host_str()
.ok_or_else(|| anyhow!("No host in URL"))?
.to_string();
let port = url
.port_or_known_default()
.ok_or_else(|| anyhow!("No port in URL"))?;
Ok(ServerAddress { ip, port })
}
View on GitHub (pinned to 5cb5df5cce)
Solutions
- Provide a URL including both host and port, e.g. http://127.0.0.1:8080.
- Check the configured URL for typos.
When it happens
Trigger: 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.
Common situations: Misconfigured web/client URL setting.
AI-assisted analysis of zellij-org/zellij@5cb5df5cce (2026-08-19).
Data as JSON: /api/errors/eb908165cc99cdc0.
Report an issue: GitHub.