phacility/phabricator · error · Exception
Repository " " is not a valid repository.
Error message
Repository "%s" is not a valid repository.
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php:132 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/703a8b87f1ac9269.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php:132
protected function newConduitCallProxyClient(ConduitAPIRequest $request) {
$viewer = $request->getViewer();
$identifier = $request->getValue('repository');
if ($identifier === null) {
$identifier = $request->getValue('callsign');
}
$drequest = DiffusionRequest::newFromDictionary(
array(
'user' => $viewer,
'repository' => $identifier,
'branch' => $request->getValue('branch'),
'path' => $request->getValue('path'),
'commit' => $request->getValue('commit'),
));
if (!$drequest) {
throw new Exception(
pht(
'Repository "%s" is not a valid repository.',
$identifier));
}
$repository = $drequest->getRepository();
$client = $repository->newConduitClientForRequest($request);
if ($client) {
return $client;
}
$this->setDiffusionRequest($drequest);
return null;
}
protected function getResult(ConduitAPIRequest $request) {View on GitHub (pinned to 5720a38cfe)