CanineHQ/canine · error · Git::Client::Error
Failed to register webhook: #{response.body}
Error message
Failed to register webhook: #{response.body} What it means
Error "Failed to register webhook: #{response.body}" thrown in CanineHQ/canine.
Source
Thrown at app/services/git/bitbucket/client.rb:77
false
end
def register_webhook!
return if webhook_exists?
response = HTTParty.post(
"#{bitbucket_api_base}/repositories/#{repository_url}/hooks",
headers: auth_headers.merge("Content-Type" => "application/json"),
body: {
description: "Canine autodeploy webhook",
url: Rails.application.routes.url_helpers.inbound_webhooks_bitbucket_index_url,
active: true,
secret: BITBUCKET_WEBHOOK_SECRET,
events: [ "repo:push" ]
}.to_json
)
unless response.success?
raise Git::Client::Error, "Failed to register webhook: #{response.body}"
end
response.parsed_response
end
def webhooks
response = HTTParty.get(
"#{bitbucket_api_base}/repositories/#{repository_url}/hooks",
headers: auth_headers
)
return [] unless response.success?
response["values"] || []
end
def webhook_exists?
webhook.present?
end
View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/services/git/bitbucket/client.rb:77 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/934d74cff385ffaa.
Report an issue: GitHub.