CanineHQ/canine · error · RuntimeError
Unknown registry url
Error message
Unknown registry url
What it means
Error "Unknown registry url" thrown in CanineHQ/canine.
Source
Thrown at app/models/provider.rb:171
enterprise? ? URI.parse(registry_url).host : "github.com"
elsif gitlab?
enterprise? ? URI.parse(registry_url).host : "gitlab.com"
elsif bitbucket?
enterprise? ? URI.parse(registry_url).host : "bitbucket.org"
elsif container_registry?
registry_url
end
end
def registry_base_url
if github?
"ghcr.io"
elsif gitlab?
"registry.gitlab.com"
elsif container_registry?
registry_url
else
raise "Unknown registry url"
end
end
REGISTRY_WEB_URLS = {
"docker.io" => "https://hub.docker.com/r/%{repo}/%{owner}",
"ghcr.io" => "https://ghcr.io/%{owner}/%{repo}",
"registry.gitlab.com" => "https://gitlab.com/%{owner}/%{repo}/container_registry"
}.freeze
def registry_web_url(repository_url)
base = registry_base_url
template = REGISTRY_WEB_URLS[base]
if template
owner, repo = repository_url.split("/", 2)
format(template, owner: owner, repo: repo)
else
"https://#{base}"View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/models/provider.rb:171 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23).
Data as JSON: /api/errors/36cc1f95453ae37a.
Report an issue: GitHub.