phacility/phabricator · error · ConduitException

ERR-UNSUPPORTED-VCS

ERR-UNSUPPORTED-VCS

Error message

ERR-UNSUPPORTED-VCS

What it means

Default VCS dispatch stub in DiffusionQueryConduitAPIMethod::getGitResult: the base class throws this sentinel ConduitException when a subclass did not implement the result method for the repository's version control system (getResult dispatches to getGitResult/getSVNResult/etc. based on VCS). It signals that the requested operation simply is not supported for that VCS — e.g. asking for branch data on an SVN repository — rather than a runtime failure.

Solutions

  1. Check the repository's VCS type and use only the Conduit methods that support it (e.g. branch queries require Git/Mercurial)
  2. Consult the method's documentation to see which VCS backends implement the operation
  3. If the operation should be supported, verify you are querying the intended repository and not falling through due to a misidentified VCS
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php:69 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/4e410751fec851ae. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php:69

      );
  }

  /**
   * Subclasses should override this to specify custom param types.
   */
  protected function defineCustomParamTypes() {
    return array();
  }

  /**
   * Subclasses should override these methods with the proper result for the
   * pertinent version control system, e.g. getGitResult for Git.
   *
   * If the result is not supported for that VCS, do not implement it. e.g.
   * Subversion (SVN) does not support branches.
   */
  protected function getGitResult(ConduitAPIRequest $request) {
    throw new ConduitException('ERR-UNSUPPORTED-VCS');
  }
  protected function getSVNResult(ConduitAPIRequest $request) {
    throw new ConduitException('ERR-UNSUPPORTED-VCS');
  }
  protected function getMercurialResult(ConduitAPIRequest $request) {
    throw new ConduitException('ERR-UNSUPPORTED-VCS');
  }

  /**
   * This method is final because most queries will need to construct a
   * @{class:DiffusionRequest} and use it. Consolidating this codepath and
   * enforcing @{method:getDiffusionRequest} works when we need it is good.
   *
   * @{method:getResult} should be overridden by subclasses as necessary, e.g.
   * there is a common operation across all version control systems that
   * should occur after @{method:getResult}, like formatting a timestamp.
   */
  final protected function execute(ConduitAPIRequest $request) {

View on GitHub (pinned to 5720a38cfe)