{"record":{"id":"aecd556292f924a3","repo":"phacility/phabricator","slug":"failed-to-load-file-s-returned-by-s","errorCode":null,"errorMessage":"Failed to load file (\"%s\") returned by \"%s\".","messagePattern":"Failed to load file \\(\"(.+?)\"\\) returned by \"(.+?)\"\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/controller/DiffusionBrowseController.php","lineNumber":739,"sourceCode":"    if (!$line) {\n      return null;\n    }\n\n    $diff_info = $this->callConduitWithDiffusionRequest(\n      'diffusion.rawdiffquery',\n      array(\n        'commit' => $drequest->getCommit(),\n        'path' => $drequest->getPath(),\n        'againstCommit' => $target_commit,\n      ));\n\n    $file_phid = $diff_info['filePHID'];\n    $file = id(new PhabricatorFileQuery())\n      ->setViewer($viewer)\n      ->withPHIDs(array($file_phid))\n      ->executeOne();\n    if (!$file) {\n      throw new Exception(\n        pht(\n          'Failed to load file (\"%s\") returned by \"%s\".',\n          $file_phid,\n          'diffusion.rawdiffquery.'));\n    }\n\n    $raw_diff = $file->loadFileData();\n\n    $old_line = 0;\n    $new_line = 0;\n\n    foreach (explode(\"\\n\", $raw_diff) as $text) {\n      if ($text[0] == '-' || $text[0] == ' ') {\n        $old_line++;\n      }\n      if ($text[0] == '+' || $text[0] == ' ') {\n        $new_line++;\n      }","sourceCodeStart":721,"sourceCodeEnd":757,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/controller/DiffusionBrowseController.php#L721-L757","documentation":"Error \"Failed to load file (\"%s\") returned by \"%s\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/controller/DiffusionBrowseController.php:739 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"}