{"record":{"id":"8c3c0726a519ac2d","repo":"phacility/phabricator","slug":"credential-type-s-is-not-valid-valid-credentia","errorCode":null,"errorMessage":"Credential type \"%s\" is not valid. Valid credential types are: %s.","messagePattern":"Credential type \"(.+?)\" is not valid\\. Valid credential types are: (.+?)\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php","lineNumber":83,"sourceCode":"        // By default, \"bin/revoke --list\" implies \"--everything\".\n        $types = $all_types;\n      } else {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Specify the credential type to revoke with \"--type\" or specify '.\n            '\"--everything\". Use \"--list\" to list available credential '.\n            'types.'));\n      }\n    } else if (strlen($type) && $is_everything) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify the credential type to revoke with \"--type\" or '.\n          '\"--everything\", but not both.'));\n    } else if ($is_everything) {\n      $types = $all_types;\n    } else {\n      if (empty($all_types[$type])) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Credential type \"%s\" is not valid. Valid credential types '.\n            'are: %s.',\n            $type,\n            implode(', ', array_keys($all_types))));\n      }\n      $types = array($all_types[$type]);\n    }\n\n    $is_everywhere = $args->getArg('everywhere');\n    $from = $args->getArg('from');\n\n    if ($is_list) {\n      if ($from !== null || $is_everywhere) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'You can not \"--list\" and revoke credentials (with \"--from\" or '.\n            '\"--everywhere\") in the same operation.'));","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php#L65-L101","documentation":"Error \"Credential type \"%s\" is not valid. Valid credential types are: %s.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:83 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"}