CanineHQ/canine · error · Git::Client::Error
Failed to register webhook: #{e.message}
Error message
Failed to register webhook: #{e.message} What it means
Error "Failed to register webhook: #{e.message}" thrown in CanineHQ/canine.
Source
Thrown at app/services/git/github/client.rb:76
if webhook_exists?
return
end
client.create_hook(
repository_url,
"web",
{
url: Rails.application.routes.url_helpers.inbound_webhooks_github_index_url,
content_type: "json",
secret: webhook_secret
},
{
events: [ "push" ],
active: true
}
)
rescue Octokit::Error => e
raise Git::Client::Error, "Failed to register webhook: #{e.message}"
end
def webhook_exists?
webhook.present?
rescue Octokit::NotFound
false
end
def remove_webhook!
if webhook_exists?
client.remove_hook(repository_url, webhook.id)
end
end
def webhook
webhooks.find { |h| h.config.url.include?(Rails.application.routes.url_helpers.inbound_webhooks_github_index_path) }
end
View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/services/git/github/client.rb:76 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/eec3d3c3690693d1.
Report an issue: GitHub.