phacility/phabricator · error · Exception

Message type " " is not supported.

Error message

Message type "%s" is not supported.

What it means

Raised in harbormaster.sendmessage (sendToBuild) when the 'type' parameter does not correspond to any HarbormasterBuildMessageTransaction message type. The invalid input is the unsupported message type string.

Solutions

  1. Use a supported message type for builds (e.g. pass/fail/retry/resume)
  2. Check the list of implemented build message transactions
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php:637 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/2815600b9f632e95. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/harbormaster/conduit/HarbormasterSendMessageConduitAPIMethod.php:637

      ),
      array(
        'objectPHID' => $build->getPHID(),
      ));

    return null;
  }

  private function sendToBuild(
    ConduitAPIRequest $request,
    $message_type,
    HarbormasterBuild $build) {
    $viewer = $request->getViewer();

    $xaction =
      HarbormasterBuildMessageTransaction::getTransactionObjectForMessageType(
        $message_type);
    if (!$xaction) {
      throw new Exception(
        pht(
          'Message type "%s" is not supported.',
          $message_type));
    }

    // NOTE: This is a slightly weaker check than we perform in the web UI.
    // We allow API callers to send a "pause" message to a pausing build,
    // for example, even though the message will have no effect.
    $xaction->assertCanApplyMessage($viewer, $build);

    $build->sendMessage($viewer, $xaction->getHarbormasterBuildMessageType());
  }

  private function sendToBuildable(
    ConduitAPIRequest $request,
    $message_type,
    HarbormasterBuildable $buildable) {
    $viewer = $request->getViewer();

View on GitHub (pinned to 5720a38cfe)