phacility/phabricator · error · ConduitException

ERR_BAD_PASTE

ERR_BAD_PASTE

Error message

No such paste exists.

What it means

Error "No such paste exists." thrown in phacility/phabricator.

Source

Thrown at src/applications/paste/conduit/PasteInfoConduitAPIMethod.php:45

  protected function defineReturnType() {
    return 'nonempty dict';
  }

  protected function defineErrorTypes() {
    return array(
      'ERR_BAD_PASTE' => pht('No such paste exists.'),
    );
  }

  protected function execute(ConduitAPIRequest $request) {
    $paste_id = $request->getValue('paste_id');
    $paste = id(new PhabricatorPasteQuery())
      ->setViewer($request->getUser())
      ->withIDs(array($paste_id))
      ->needRawContent(true)
      ->executeOne();
    if (!$paste) {
      throw new ConduitException('ERR_BAD_PASTE');
    }
    return $this->buildPasteInfoDictionary($paste);
  }

}

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/paste/conduit/PasteInfoConduitAPIMethod.php:45 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/b216965a0bb9c31c. Report an issue: GitHub.