phacility/phabricator · error · PhutilArgumentUsageException
No provider with PHID
Error message
No provider with PHID "%s" exists. Use `bin/auth list-mfa-providers` to list providers.
What it means
Raised when a PHID passed via --provider to `bin/auth strip` does not match any configured MFA provider loaded by PhabricatorAuthFactorProviderQuery. The invalid PHID is rejected before factors are stripped.
Solutions
- Run bin/auth list-mfa-providers to get valid provider PHIDs
- Copy the PHID exactly (PHIDs are case-sensitive)
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php:144 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/abb4486ee3150439.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php:144
$provider_query = id(new PhabricatorAuthFactorProviderQuery())
->setViewer($viewer);
if ($provider_phids) {
$provider_query->withPHIDs($provider_phids);
}
if ($types) {
$provider_query->withProviderFactorKeys($types);
}
$providers = $provider_query->execute();
$providers = mpull($providers, null, 'getPHID');
if ($provider_phids) {
foreach ($provider_phids as $provider_phid) {
if (!isset($providers[$provider_phid])) {
throw new PhutilArgumentUsageException(
pht(
'No provider with PHID "%s" exists. '.
'Use `bin/auth list-mfa-providers` to list providers.',
$provider_phid));
}
}
} else {
if (!$providers) {
throw new PhutilArgumentUsageException(
pht(
'There are no configured multi-factor providers.'));
}
}
$factor_query = id(new PhabricatorAuthFactorConfigQuery())
->setViewer($viewer)
->withFactorProviderPHIDs(array_keys($providers));
View on GitHub (pinned to 5720a38cfe)