phacility/phabricator · error · Exception

Package key "%s" is not valid: package keys must not be more

Error message

Package key "%s" is not valid: package keys must not be more than %s characters long.

What it means

Error "Package key "%s" is not valid: package keys must not be more than %s characters long." thrown in phacility/phabricator.

Source

Thrown at src/applications/packages/storage/PhabricatorPackagesPackage.php:112

          'Package name "%s" is not valid: package names must not be '.
          'more than %s characters long.',
          $value,
          new PhutilNumber($max_length)));
    }
  }

  public static function assertValidPackageKey($value) {
    $length = phutil_utf8_strlen($value);
    if (!$length) {
      throw new Exception(
        pht(
          'Package key "%s" is not valid: package keys are required.',
          $value));
    }

    $max_length = 64;
    if ($length > $max_length) {
      throw new Exception(
        pht(
          'Package key "%s" is not valid: package keys must not be '.
          'more than %s characters long.',
          $value,
          new PhutilNumber($max_length)));
    }

    if (!preg_match('/^[a-z]+\z/', $value)) {
      throw new Exception(
        pht(
          'Package key "%s" is not valid: package keys may only contain '.
          'lowercase latin letters.',
          $value));
    }
  }


/* -(  PhabricatorSubscribableInterface  )----------------------------------- */

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/packages/storage/PhabricatorPackagesPackage.php:112 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/eb7298bab0e048df. Report an issue: GitHub.