CanineHQ/canine · error · Git::Client::Error

Failed to fetch commits: #{e.message}

Error message

Failed to fetch commits: #{e.message}

What it means

Error "Failed to fetch commits: #{e.message}" thrown in CanineHQ/canine.

Source

Thrown at app/services/git/github/client.rb:38

    Octokit::Client.new(client_options)
  end

  def commits(branch)
    client.commits(repository_url, branch).map do |commit|
      Git::Common::Commit.new(
        sha: commit.sha,
        message: commit.commit.message,
        author_name: commit.commit.author.name,
        author_email: commit.commit.author.email,
        authored_at: commit.commit.author.date,
        committer_name: commit.commit.committer.name,
        committer_email: commit.commit.committer.email,
        committed_at: commit.commit.committer.date,
        url: commit.html_url
      )
    end
  rescue Octokit::Error => e
    raise Git::Client::Error, "Failed to fetch commits: #{e.message}"
  end

  def initialize(access_token:, repository_url:, api_base_url: nil)
    @client = self.class.build_client(access_token:, api_base_url:)
    @repository_url = repository_url
  end

  def repository_exists?
    client.repository?(repository_url)
  end

  def can_write_webhooks?
    webhooks
    true
  rescue Octokit::NotFound
    false
  end

View on GitHub (pinned to ba4ee3968d)

When it happens

Trigger: Thrown at app/services/git/github/client.rb:38 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/fcc76ea5d0ec6897. Report an issue: GitHub.