phacility/phabricator · error · Exception
No such file " "!
Error message
No such file "%s"!
What it means
Generic lookup sentinel in loadFileByPHID: a PhabricatorFileQuery for the given file PHID (with the conduit caller's visibility) returned no row. The PHID is wrong, the file was deleted, or policy filtering hid it from the acting user.
Solutions
- Verify the file PHID is correct and was copied fully
- Check the file still exists (it may have been destroyed)
- Confirm the conduit user is allowed to see the file
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:15 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/b5b88c5f5dd203f9.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:15
<?php
abstract class FileConduitAPIMethod extends ConduitAPIMethod {
final public function getApplication() {
return PhabricatorApplication::getByClass('PhabricatorFilesApplication');
}
protected function loadFileByPHID(PhabricatorUser $viewer, $file_phid) {
$file = id(new PhabricatorFileQuery())
->setViewer($viewer)
->withPHIDs(array($file_phid))
->executeOne();
if (!$file) {
throw new Exception(pht('No such file "%s"!', $file_phid));
}
return $file;
}
protected function loadFileChunks(
PhabricatorUser $viewer,
PhabricatorFile $file) {
return $this->newChunkQuery($viewer, $file)
->execute();
}
protected function loadFileChunkForUpload(
PhabricatorUser $viewer,
PhabricatorFile $file,
$start,
$end) {
View on GitHub (pinned to 5720a38cfe)