{"record":{"id":"a6459d9f99d906dd","repo":"phacility/phabricator","slug":"err-not-found-a6459d","errorCode":"ERR-NOT-FOUND","errorMessage":"ERR-NOT-FOUND","messagePattern":"ERR-NOT-FOUND","errorType":"error_code","errorClass":"ConduitException","httpStatus":null,"severity":"error","filePath":"src/applications/files/conduit/FileInfoConduitAPIMethod.php","lineNumber":55,"sourceCode":"    );\n  }\n\n  protected function execute(ConduitAPIRequest $request) {\n    $phid = $request->getValue('phid');\n    $id   = $request->getValue('id');\n\n    $query = id(new PhabricatorFileQuery())\n      ->setViewer($request->getUser());\n    if ($id) {\n      $query->withIDs(array($id));\n    } else {\n      $query->withPHIDs(array($phid));\n    }\n\n    $file = $query->executeOne();\n\n    if (!$file) {\n      throw new ConduitException('ERR-NOT-FOUND');\n    }\n\n    $uri = $file->getInfoURI();\n\n    return array(\n      'id'            => $file->getID(),\n      'phid'          => $file->getPHID(),\n      'objectName'    => 'F'.$file->getID(),\n      'name'          => $file->getName(),\n      'mimeType'      => $file->getMimeType(),\n      'byteSize'      => $file->getByteSize(),\n      'authorPHID'    => $file->getAuthorPHID(),\n      'dateCreated'   => $file->getDateCreated(),\n      'dateModified'  => $file->getDateModified(),\n      'uri'           => PhabricatorEnv::getProductionURI($uri),\n    );\n  }\n","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileInfoConduitAPIMethod.php#L37-L73","documentation":"Error \"ERR-NOT-FOUND\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/files/conduit/FileInfoConduitAPIMethod.php:55 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"}