{"record":{"id":"f0cb897278cbbe77","repo":"CanineHQ/canine","slug":"failed-to-authenticate-with-registry-normalized","errorCode":null,"errorMessage":"Failed to authenticate with registry: #{normalized_registry}","messagePattern":"Failed to authenticate with registry: #(.+?)","errorType":"exception","errorClass":"DockerCli::AuthenticationError","httpStatus":null,"severity":"error","filePath":"app/services/docker_cli.rb","lineNumber":10,"sourceCode":"class DockerCli\n  class AuthenticationError < StandardError; end\n\n  def self.with_registry_auth(registry_url:, username:, password:, &block)\n    normalized_registry = normalize_registry_url(registry_url)\n\n    # Login to registry\n    login_success = login(normalized_registry, username, password)\n    unless login_success\n      raise AuthenticationError, \"Failed to authenticate with registry: #{normalized_registry}\"\n    end\n\n    # Execute the block\n    begin\n      yield\n    ensure\n      # Always logout, even if block raises an exception\n      logout(normalized_registry)\n    end\n  end\n\n  private\n\n  def self.login(registry, username, password)\n    docker_login_command = [\n      \"docker\", \"login\", registry,\n      \"--username\", username,\n      \"--password-stdin\"","sourceCodeStart":1,"sourceCodeEnd":28,"githubUrl":"https://github.com/CanineHQ/canine/blob/ba4ee3968d8513ee27d8583fbd3e854a8dd053f3/app/services/docker_cli.rb#L1-L28","documentation":"Error \"Failed to authenticate with registry: #{normalized_registry}\" thrown in CanineHQ/canine.","triggerScenarios":"Thrown at app/services/docker_cli.rb:10 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"}