{"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":"Conduit error-code sentinel in file.info execute: querying by the supplied id or phid returned no file, so the machine-readable 'ERR-NOT-FOUND' code is thrown for conduit clients. The identifier is wrong, the file is deleted, or policy filtering excluded it.","triggerScenarios":"Thrown at src/applications/files/conduit/FileInfoConduitAPIMethod.php:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the 'id'/'phid' request values are correct","Confirm the file exists and is visible to the requesting user"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}