CanineHQ/canine · error · Rancher::Client::ConnectionError
Connection to Rancher timed out
Error message
Connection to Rancher timed out
What it means
Error "Connection to Rancher timed out" thrown in CanineHQ/canine.
Source
Thrown at lib/rancher/client.rb:77
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
private
View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at lib/rancher/client.rb:77 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23).
Data as JSON: /api/errors/885fdbdc5e5febc6.
Report an issue: GitHub.