{"record":{"id":"136ba9a792753c04","repo":"theforeman/foreman","slug":"unable-to-get-puppetca-certificates","errorCode":null,"errorMessage":"Unable to get PuppetCA certificates","messagePattern":"Unable to get PuppetCA certificates","errorType":"exception","errorClass":"ProxyException","httpStatus":null,"severity":"error","filePath":"app/services/proxy_api/puppet_ca.rb","lineNumber":47,"sourceCode":"    def sign_certificate(certname)\n      parse(post(\"\", certname))\n    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to sign PuppetCA certificate for %s\"), certname)\n    end\n\n    def del_certificate(certname)\n      parse(delete(certname.to_s))\n    rescue RestClient::ResourceNotFound\n      # entry doesn't exists anyway\n      true\n    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to delete PuppetCA certificate for %s\"), certname)\n    end\n\n    def all\n      parse(get)\n    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to get PuppetCA certificates\"))\n    end\n  end\nend\n","sourceCodeStart":29,"sourceCodeEnd":51,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/services/proxy_api/puppet_ca.rb#L29-L51","documentation":"Error \"Unable to get PuppetCA certificates\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/services/proxy_api/puppet_ca.rb:47 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":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}