phacility/phabricator · error · Exception

%s is required!

Error message

%s is required!

What it means

Error "%s is required!" thrown in phacility/phabricator.

Source

Thrown at src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php:110

    return 'HMAC-SHA1';
  }

  public function getContentSecurityPolicyFormActions() {
    return array(
      $this->getAuthorizeTokenURI(),
    );
  }

  protected function newOAuth1Future($uri, $data = array()) {
    $future = id(new PhutilOAuth1Future($uri, $data))
      ->setMethod('POST')
      ->setSignatureMethod($this->getSignatureMethod());

    $consumer_key = $this->getConsumerKey();
    if (strlen($consumer_key)) {
      $future->setConsumerKey($consumer_key);
    } else {
      throw new Exception(
        pht(
          '%s is required!',
          'setConsumerKey()'));
    }

    $consumer_secret = $this->getConsumerSecret();
    if ($consumer_secret) {
      $future->setConsumerSecret($consumer_secret);
    }

    if (strlen($this->getToken())) {
      $future->setToken($this->getToken());
    }

    if (strlen($this->getTokenSecret())) {
      $future->setTokenSecret($this->getTokenSecret());
    }

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/auth/adapter/PhutilOAuth1AuthAdapter.php:110 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/75ca52dc25dec898. Report an issue: GitHub.