{"record":{"id":"64a077ad76bc09eb","repo":"phacility/phabricator","slug":"factor-type-s-is-unknown-use-bin-auth-list-fa","errorCode":null,"errorMessage":"Factor type \"%s\" is unknown. Use `bin/auth list-factors` to get a list of known factor types.","messagePattern":"Factor type \"(.+?)\" is unknown\\. Use `bin/auth list-factors` to get a list of known factor types\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php","lineNumber":118,"sourceCode":"      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify either specific factors with \"--provider\", or all factors '.\n          'with \"--all-types\", but not both.'));\n    } else if (!$types && !$all_types && !$provider_phids) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Use \"--type <type>\" or \"--provider <phid>\" to specify which '.\n          'factors to strip, or \"--all-types\" to strip all factors. '.\n          'Use `bin/auth list-factors` to show the available factor types '.\n          'or `bin/auth list-mfa-providers` to show available providers.'));\n    }\n\n    $type_map = PhabricatorAuthFactor::getAllFactors();\n\n    if ($types) {\n      foreach ($types as $type) {\n        if (!isset($type_map[$type])) {\n          throw new PhutilArgumentUsageException(\n            pht(\n              'Factor type \"%s\" is unknown. Use `bin/auth list-factors` to '.\n              'get a list of known factor types.',\n              $type));\n        }\n      }\n    }\n\n    $provider_query = id(new PhabricatorAuthFactorProviderQuery())\n      ->setViewer($viewer);\n\n    if ($provider_phids) {\n      $provider_query->withPHIDs($provider_phids);\n    }\n\n    if ($types) {\n      $provider_query->withProviderFactorKeys($types);\n    }","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php#L100-L136","documentation":"Error \"Factor type \"%s\" is unknown. Use `bin/auth list-factors` to get a list of known factor types.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/management/PhabricatorAuthManagementStripWorkflow.php:118 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}