{"record":{"id":"eea05b781631643d","repo":"phacility/phabricator","slug":"no-repository-exists-with-phid-s","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/DiffusionGetLintMessagesConduitAPIMethod.php","lineNumber":41,"sourceCode":"      'files'          => 'required list<string>',\n    );\n  }\n\n  protected function defineReturnType() {\n    return 'list<dict>';\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    $branch_name = $request->getValue('branch');\n    if ($branch_name == '') {\n      $repository = id(new PhabricatorRepositoryQuery())\n        ->setViewer($request->getUser())\n        ->withIDs(array($repository->getID()))\n        ->executeOne();\n      $branch_name = $repository->getDefaultArcanistBranch();\n    }\n\n    $branch = id(new PhabricatorRepositoryBranch())->loadOneWhere(\n      'repositoryID = %d AND name = %s',\n      $repository->getID(),\n      $branch_name);\n    if (!$branch || !$branch->getLintCommit()) {\n      return array();","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/conduit/DiffusionGetLintMessagesConduitAPIMethod.php#L23-L59","documentation":"Lookup failure in DiffusionGetLintMessagesConduitAPIMethod::execute: the repositoryPHID parameter of the Conduit request does not correspond to any repository visible to the requesting user (PhabricatorRepositoryQuery with that single PHID returned no result). Either the PHID is wrong/typo'd or the user lacks permission to see the repository, so the lint-message lookup cannot proceed.","triggerScenarios":"Thrown at src/applications/diffusion/conduit/DiffusionGetLintMessagesConduitAPIMethod.php:41 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Double-check the repositoryPHID value being passed (it must be a valid PHID-REPO-nnnn style identifier)","If the PHID is correct, verify the acting user has permission to view the repository","Load the repository list via Conduit (repository.query) to confirm the correct PHID to use"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}