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/gitlab/client.rb:115
end
def register_webhook!
if webhook_exists?
return
end
response = HTTParty.post(
"#{gitlab_api_base}/projects/#{encoded_url}/hooks",
headers: { "Authorization" => "Bearer #{access_token}", "Content-Type" => "application/json" },
body: {
url: Rails.application.routes.url_helpers.inbound_webhooks_gitlab_index_url,
name: "canine-webhook",
push_events: true,
enable_ssl_verification: true,
token: GITLAB_WEBHOOK_SECRET
}.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(
"#{gitlab_api_base}/projects/#{encoded_url}/hooks",
headers: { "Authorization" => "Bearer #{access_token}" },
format: :json
)
end
def encoded_url
URI.encode_www_form_component(repository_url)
end
def repository
@repository ||= beginView on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/services/git/gitlab/client.rb:115 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/d1f4c731816feed1.
Report an issue: GitHub.