{"record":{"id":"619cb6f2e8e03851","repo":"CanineHQ/canine","slug":"failed-to-fetch-commits-response-body-619cb6","errorCode":null,"errorMessage":"Failed to fetch commits: #{response.body}","messagePattern":"Failed to fetch commits: #(.+?)","errorType":"exception","errorClass":"Git::Client::Error","httpStatus":null,"severity":"error","filePath":"app/services/git/gitlab/client.rb","lineNumber":77,"sourceCode":"      @web_url = data[\"web_url\"]\n    end\n  end\n\n  def gitlab_api_base\n    \"#{@api_base_url}/api/v4\"\n  end\n\n  def repository_exists?\n    repository.present?\n  end\n\n  def commits(branch)\n    response = HTTParty.get(\n      \"#{gitlab_api_base}/projects/#{encoded_url}/repository/commits?ref=#{branch}\",\n      headers: { \"Authorization\" => \"Bearer #{access_token}\" }\n    )\n    unless response.success?\n      raise Git::Client::Error, \"Failed to fetch commits: #{response.body}\"\n    end\n\n    response.map do |commit|\n      Git::Common::Commit.new(\n        sha: commit[\"id\"],\n        message: commit[\"message\"],\n        author_name: commit[\"author_name\"],\n        author_email: commit[\"author_email\"],\n        authored_at: DateTime.parse(commit[\"authored_date\"]),\n        committer_name: commit[\"committer_name\"],\n        committer_email: commit[\"committer_email\"],\n        committed_at: DateTime.parse(commit[\"committed_date\"]),\n        url: commit[\"web_url\"]\n      )\n    end\n  end\n\n  def can_write_webhooks?","sourceCodeStart":59,"sourceCodeEnd":95,"githubUrl":"https://github.com/CanineHQ/canine/blob/ba4ee3968d8513ee27d8583fbd3e854a8dd053f3/app/services/git/gitlab/client.rb#L59-L95","documentation":"Error \"Failed to fetch commits: #{response.body}\" thrown in CanineHQ/canine.","triggerScenarios":"Thrown at app/services/git/gitlab/client.rb:77 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ba4ee3968d8513ee27d8583fbd3e854a8dd053f3","analyzedAt":"2026-08-23T17:49:27.834Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}