CanineHQ/canine · error · Rancher::Client::ConnectionError
Rancher URL is not resolvable
Error message
Rancher URL is not resolvable
What it means
Error "Rancher URL is not resolvable" thrown in CanineHQ/canine.
Source
Thrown at lib/rancher/client.rb:75
Rancher::Data::Cluster.new(
id: cluster_data["id"],
name: cluster_data["name"],
state: cluster_data["state"]
)
end
end
def generate_kubeconfig(cluster_id)
response = post("/v3/clusters/#{cluster_id}?action=generateKubeconfig")
YAML.safe_load(response["config"])
end
def get(path, query: {})
fetch_wrapper do
self.class.get("#{provider_url}#{path}", headers:, query:, verify: false)
end
rescue Socket::ResolutionError
raise ConnectionError, "Rancher URL is not resolvable"
rescue Net::ReadTimeout, Net::OpenTimeout
raise ConnectionError, "Connection to Rancher timed out"
end
def post(path, body: {})
fetch_wrapper do
self.class.post(
"#{provider_url}#{path}",
headers:,
body: body.to_json
)
end
rescue Socket::ResolutionError
raise ConnectionError, "Rancher URL is not resolvable"
rescue Net::ReadTimeout, Net::OpenTimeout
raise ConnectionError, "Connection to Rancher timed out"
end
View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at lib/rancher/client.rb:75 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/708eb84f95287c4f.
Report an issue: GitHub.