phacility/phabricator · error · PhutilArgumentUsageException

Credential type "%s" is not valid. Valid credential types ar

Error message

Credential type "%s" is not valid. Valid credential types are: %s.

What it means

Error "Credential type "%s" is not valid. Valid credential types are: %s." thrown in phacility/phabricator.

Source

Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:83

        // By default, "bin/revoke --list" implies "--everything".
        $types = $all_types;
      } else {
        throw new PhutilArgumentUsageException(
          pht(
            'Specify the credential type to revoke with "--type" or specify '.
            '"--everything". Use "--list" to list available credential '.
            'types.'));
      }
    } else if (strlen($type) && $is_everything) {
      throw new PhutilArgumentUsageException(
        pht(
          'Specify the credential type to revoke with "--type" or '.
          '"--everything", but not both.'));
    } else if ($is_everything) {
      $types = $all_types;
    } else {
      if (empty($all_types[$type])) {
        throw new PhutilArgumentUsageException(
          pht(
            'Credential type "%s" is not valid. Valid credential types '.
            'are: %s.',
            $type,
            implode(', ', array_keys($all_types))));
      }
      $types = array($all_types[$type]);
    }

    $is_everywhere = $args->getArg('everywhere');
    $from = $args->getArg('from');

    if ($is_list) {
      if ($from !== null || $is_everywhere) {
        throw new PhutilArgumentUsageException(
          pht(
            'You can not "--list" and revoke credentials (with "--from" or '.
            '"--everywhere") in the same operation.'));

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:83 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/8c3c0726a519ac2d. Report an issue: GitHub.