phacility/phabricator · error · Exception

No such object " " exists.

Error message

No such object "%s" exists.

What it means

Raised in harbormaster.queryautotargets when the objectPHID parameter does not resolve to any object via PhabricatorObjectQuery (which also accepts monograms like D123). The invalid input is the unknown object PHID or name.

Solutions

  1. Verify the PHID/monogram is correct
  2. Check visibility/policy permissions for the conduit user
  3. Confirm the object still exists
Defensive patterns

Strategy: validation

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.

Appendix: 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)