phacility/phabricator · error · Exception

Package name "%s" is not valid: package names must not be mo

Error message

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

What it means

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

Source

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

    return $this;
  }

  public function getPublisher() {
    return $this->assertAttached($this->publisher);
  }

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

    $max_length = 64;
    if ($length > $max_length) {
      throw new Exception(
        pht(
          '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;

View on GitHub (pinned to 5720a38cfe)

When it happens

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