{"record":{"id":"4160d3c9f9d3306c","repo":"phacility/phabricator","slug":"no-such-object-s-exists","errorCode":null,"errorMessage":"No such object \"%s\" exists.","messagePattern":"No such object \"(.+?)\" exists\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php","lineNumber":38,"sourceCode":"\n  protected function defineReturnType() {\n    return 'map<string, phid>';\n  }\n\n  protected function execute(ConduitAPIRequest $request) {\n    $viewer = $request->getUser();\n\n    $phid = $request->getValue('objectPHID');\n\n    // NOTE: We use withNames() to let monograms like \"D123\" work, which makes\n    // this a little easier to test. Real PHIDs will still work as expected.\n\n    $object = id(new PhabricatorObjectQuery())\n      ->setViewer($viewer)\n      ->withNames(array($phid))\n      ->executeOne();\n    if (!$object) {\n      throw new Exception(\n        pht(\n          'No such object \"%s\" exists.',\n          $phid));\n    }\n\n    if (!($object instanceof HarbormasterBuildableInterface)) {\n      throw new Exception(\n        pht(\n          'Object \"%s\" does not implement interface \"%s\". Autotargets may '.\n          'only be queried for buildable objects.',\n          $phid,\n          'HarbormasterBuildableInterface'));\n    }\n\n    $autotargets = $request->getValue('targetKeys', array());\n\n    if ($autotargets) {\n      $targets = id(new HarbormasterTargetEngine())","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php#L20-L56","documentation":"Error \"No such object \"%s\" exists.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}