phacility/phabricator · error · Exception

Failed to load file object for Git LFS ref "%s"!

Error message

Failed to load file object for Git LFS ref "%s"!

What it means

Error "Failed to load file object for Git LFS ref "%s"!" thrown in phacility/phabricator.

Source

Thrown at src/applications/diffusion/controller/DiffusionBrowseController.php:1045

    if ($messages) {
      $corpus->setInfoView(
        id(new PHUIInfoView())
          ->setSeverity($severity)
          ->setErrors($messages));
    }

    return $corpus;
  }

  private function loadGitLFSFile(PhabricatorRepositoryGitLFSRef $ref) {
    $viewer = $this->getViewer();

    $file = id(new PhabricatorFileQuery())
      ->setViewer($viewer)
      ->withPHIDs(array($ref->getFilePHID()))
      ->executeOne();
    if (!$file) {
      throw new Exception(
        pht(
          'Failed to load file object for Git LFS ref "%s"!',
          $ref->getObjectHash()));
    }

    return $file;
  }

}

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/diffusion/controller/DiffusionBrowseController.php:1045 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/bc8c8816f231f8a3. Report an issue: GitHub.