{"record":{"id":"703a8b87f1ac9269","repo":"phacility/phabricator","slug":"repository-s-is-not-a-valid-repository","errorCode":null,"errorMessage":"Repository \"%s\" is not a valid repository.","messagePattern":"Repository \"(.+?)\" is not a valid repository\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php","lineNumber":132,"sourceCode":"  protected function newConduitCallProxyClient(ConduitAPIRequest $request) {\n    $viewer = $request->getViewer();\n\n    $identifier = $request->getValue('repository');\n    if ($identifier === null) {\n      $identifier = $request->getValue('callsign');\n    }\n\n    $drequest = DiffusionRequest::newFromDictionary(\n      array(\n        'user' => $viewer,\n        'repository' => $identifier,\n        'branch' => $request->getValue('branch'),\n        'path' => $request->getValue('path'),\n        'commit' => $request->getValue('commit'),\n      ));\n\n    if (!$drequest) {\n      throw new Exception(\n        pht(\n          'Repository \"%s\" is not a valid repository.',\n          $identifier));\n    }\n\n    $repository = $drequest->getRepository();\n\n    $client = $repository->newConduitClientForRequest($request);\n    if ($client) {\n      return $client;\n    }\n\n    $this->setDiffusionRequest($drequest);\n\n    return null;\n  }\n\n  protected function getResult(ConduitAPIRequest $request) {","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php#L114-L150","documentation":"Resolution failure in DiffusionQueryConduitAPIMethod::newConduitCallProxyClient: the 'repository' (or fallback 'callsign') request value could not be resolved into a DiffusionRequest via newFromDictionary. The identifier supplied by the client does not match any repository visible to the viewer, so there is no repository to proxy the conduit call to and the client proxy cannot be constructed.","triggerScenarios":"Thrown at src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php:132 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the repository identifier (PHID, callsign, or short name) is correct and unambiguous","Grant the acting user access to the repository if it exists but is hidden from them","List available repositories (repository.query) to find the correct identifier to pass"],"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"}