{"record":{"id":"13c05eefad751c1e","repo":"phacility/phabricator","slug":"no-repository-exists-with-phid-s-13c05e","errorCode":null,"errorMessage":"No repository exists with PHID \"%s\".","messagePattern":"No repository exists with PHID \"(.+?)\"\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php","lineNumber":47,"sourceCode":"      'repositoryPHID' => 'required phid',\n      'branch' => 'required string',\n      'commit' => 'required string',\n      'coverage' => 'required map<string, string>',\n      'mode' => 'optional '.$this->formatStringConstants($modes),\n    );\n  }\n\n  protected function execute(ConduitAPIRequest $request) {\n    $viewer = $request->getUser();\n\n    $repository_phid = $request->getValue('repositoryPHID');\n    $repository = id(new PhabricatorRepositoryQuery())\n      ->setViewer($viewer)\n      ->withPHIDs(array($repository_phid))\n      ->executeOne();\n\n    if (!$repository) {\n      throw new Exception(\n        pht('No repository exists with PHID \"%s\".', $repository_phid));\n    }\n\n    $commit_name = $request->getValue('commit');\n    $commit = id(new DiffusionCommitQuery())\n      ->setViewer($viewer)\n      ->withRepository($repository)\n      ->withIdentifiers(array($commit_name))\n      ->executeOne();\n    if (!$commit) {\n      throw new Exception(\n        pht('No commit exists with identifier \"%s\".', $commit_name));\n    }\n\n    $branch = PhabricatorRepositoryBranch::loadOrCreateBranch(\n      $repository->getID(),\n      $request->getValue('branch'));\n","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php#L29-L65","documentation":"Error \"No repository exists with PHID \"%s\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/conduit/DiffusionUpdateCoverageConduitAPIMethod.php: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":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}