phacility/phabricator · error · Exception

There are multiple chunks in byte range %d - %d.

Error message

There are multiple chunks in byte range %d - %d.

What it means

Error "There are multiple chunks in byte range %d - %d." thrown in phacility/phabricator.

Source

Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:51

    $start = (int)$start;
    $end = (int)$end;

    $chunks = $this->newChunkQuery($viewer, $file)
      ->withByteRange($start, $end)
      ->execute();

    if (!$chunks) {
      throw new Exception(
        pht(
          'There are no file data chunks in byte range %d - %d.',
          $start,
          $end));
    }

    if (count($chunks) !== 1) {
      phlog($chunks);
      throw new Exception(
        pht(
          'There are multiple chunks in byte range %d - %d.',
          $start,
          $end));
    }

    $chunk = head($chunks);
    if ($chunk->getByteStart() != $start) {
      throw new Exception(
        pht(
          'Chunk start byte is %d, not %d.',
          $chunk->getByteStart(),
          $start));
    }

    if ($chunk->getByteEnd() != $end) {
      throw new Exception(
        pht(

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:51 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/24ff0467100b30f1. Report an issue: GitHub.