phacility/phabricator · error · Exception
Package name "%s" is not valid: package names are required.
Error message
Package name "%s" is not valid: package names are required.
What it means
Error "Package name "%s" is not valid: package names are required." thrown in phacility/phabricator.
Source
Thrown at src/applications/packages/storage/PhabricatorPackagesPackage.php:84
$publisher = $this->getPublisher();
$publisher_key = $publisher->getPublisherKey();
$package_key = $this->getPackageKey();
return "{$publisher_key}/{$package_key}";
}
public function attachPublisher(PhabricatorPackagesPublisher $publisher) {
$this->publisher = $publisher;
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);View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/packages/storage/PhabricatorPackagesPackage.php:84 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/b5a668aaf46d6f21.
Report an issue: GitHub.