phacility/phabricator · error · Exception

No such object "%s" exists.

Error message

No such object "%s" exists.

What it means

Error "No such object "%s" exists." thrown in phacility/phabricator.

Source

Thrown at src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php:38

  protected function defineReturnType() {
    return 'map<string, phid>';
  }

  protected function execute(ConduitAPIRequest $request) {
    $viewer = $request->getUser();

    $phid = $request->getValue('objectPHID');

    // NOTE: We use withNames() to let monograms like "D123" work, which makes
    // this a little easier to test. Real PHIDs will still work as expected.

    $object = id(new PhabricatorObjectQuery())
      ->setViewer($viewer)
      ->withNames(array($phid))
      ->executeOne();
    if (!$object) {
      throw new Exception(
        pht(
          'No such object "%s" exists.',
          $phid));
    }

    if (!($object instanceof HarbormasterBuildableInterface)) {
      throw new Exception(
        pht(
          'Object "%s" does not implement interface "%s". Autotargets may '.
          'only be queried for buildable objects.',
          $phid,
          'HarbormasterBuildableInterface'));
    }

    $autotargets = $request->getValue('targetKeys', array());

    if ($autotargets) {
      $targets = id(new HarbormasterTargetEngine())

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php:38 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/4160d3c9f9d3306c. Report an issue: GitHub.