phacility/phabricator · error · ConduitException
ERR-NOT-FOUND
ERR-NOT-FOUND
Error message
ERR-NOT-FOUND
What it means
Conduit error-code sentinel in file.info execute: querying by the supplied id or phid returned no file, so the machine-readable 'ERR-NOT-FOUND' code is thrown for conduit clients. The identifier is wrong, the file is deleted, or policy filtering excluded it.
Solutions
- Check the 'id'/'phid' request values are correct
- Confirm the file exists and is visible to the requesting user
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/files/conduit/FileInfoConduitAPIMethod.php:55 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/a6459d9f99d906dd.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/files/conduit/FileInfoConduitAPIMethod.php:55
);
}
protected function execute(ConduitAPIRequest $request) {
$phid = $request->getValue('phid');
$id = $request->getValue('id');
$query = id(new PhabricatorFileQuery())
->setViewer($request->getUser());
if ($id) {
$query->withIDs(array($id));
} else {
$query->withPHIDs(array($phid));
}
$file = $query->executeOne();
if (!$file) {
throw new ConduitException('ERR-NOT-FOUND');
}
$uri = $file->getInfoURI();
return array(
'id' => $file->getID(),
'phid' => $file->getPHID(),
'objectName' => 'F'.$file->getID(),
'name' => $file->getName(),
'mimeType' => $file->getMimeType(),
'byteSize' => $file->getByteSize(),
'authorPHID' => $file->getAuthorPHID(),
'dateCreated' => $file->getDateCreated(),
'dateModified' => $file->getDateModified(),
'uri' => PhabricatorEnv::getProductionURI($uri),
);
}
View on GitHub (pinned to 5720a38cfe)