phacility/phabricator · error · ConduitException

ERR-BAD-PHID

ERR-BAD-PHID

Error message

ERR-BAD-PHID

What it means

Error "ERR-BAD-PHID" thrown in phacility/phabricator.

Source

Thrown at src/applications/files/conduit/FileDownloadConduitAPIMethod.php:37

  protected function defineReturnType() {
    return 'nonempty base64-bytes';
  }

  protected function defineErrorTypes() {
    return array(
      'ERR-BAD-PHID' => pht('No such file exists.'),
    );
  }

  protected function execute(ConduitAPIRequest $request) {
    $phid = $request->getValue('phid');

    $file = id(new PhabricatorFileQuery())
      ->setViewer($request->getUser())
      ->withPHIDs(array($phid))
      ->executeOne();
    if (!$file) {
      throw new ConduitException('ERR-BAD-PHID');
    }

    return base64_encode($file->loadFileData());
  }

}

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/files/conduit/FileDownloadConduitAPIMethod.php:37 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/703fa478770a3343. Report an issue: GitHub.