{"record":{"id":"290ba7f0b89268d6","repo":"phacility/phabricator","slug":"s-failed","errorCode":null,"errorMessage":"%s failed!","messagePattern":"(.+?) failed!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/auth/adapter/PhutilJIRAAuthAdapter.php","lineNumber":147,"sourceCode":"\n    $params = array(\n      'username' => $session['name'],\n    );\n\n    return $this->newJIRAFuture('rest/api/2/user', 'GET', $params)\n      ->resolveJSON();\n  }\n\n  public static function newJIRAKeypair() {\n    $config = array(\n      'digest_alg' => 'sha512',\n      'private_key_bits' => 4096,\n      'private_key_type' => OPENSSL_KEYTYPE_RSA,\n    );\n\n    $res = openssl_pkey_new($config);\n    if (!$res) {\n      throw new Exception(pht('%s failed!', 'openssl_pkey_new()'));\n    }\n\n    $private_key = null;\n    $ok = openssl_pkey_export($res, $private_key);\n    if (!$ok) {\n      throw new Exception(pht('%s failed!', 'openssl_pkey_export()'));\n    }\n\n    $public_key = openssl_pkey_get_details($res);\n    if (!$ok || empty($public_key['key'])) {\n      throw new Exception(pht('%s failed!', 'openssl_pkey_get_details()'));\n    }\n    $public_key = $public_key['key'];\n\n    return array($public_key, $private_key);\n  }\n\n","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/auth/adapter/PhutilJIRAAuthAdapter.php#L129-L165","documentation":"Error \"%s failed!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/auth/adapter/PhutilJIRAAuthAdapter.php:147 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"}