hpyhacking/peatio · error · Handlebars.Exception

{} doesn't match {}

Error message

{} doesn't match {}

What it means

Error "{} doesn't match {}" thrown in hpyhacking/peatio.

Source

Thrown at app/assets/javascripts/swagger-ui/lib/handlebars-1.0.0.js:719

  // * it is an eligible helper, and
  // * it has at least one parameter or hash segment
  this.isHelper = eligibleHelper && (params.length || hash);

  // if a mustache is an eligible helper but not a definite
  // helper, it is ambiguous, and will be resolved in a later
  // pass or at runtime.
};

Handlebars.AST.PartialNode = function(partialName, context) {
  this.type         = "partial";
  this.partialName  = partialName;
  this.context      = context;
};

Handlebars.AST.BlockNode = function(mustache, program, inverse, close) {
  var verifyMatch = function(open, close) {
    if(open.original !== close.original) {
      throw new Handlebars.Exception(open.original + " doesn't match " + close.original);
    }
  };

  verifyMatch(mustache.id, close);
  this.type = "block";
  this.mustache = mustache;
  this.program  = program;
  this.inverse  = inverse;

  if (this.inverse && !this.program) {
    this.isInverse = true;
  }
};

Handlebars.AST.ContentNode = function(string) {
  this.type = "content";
  this.string = string;
};

View on GitHub (pinned to dab8641137)

Solutions

  1. Match the closing block tag to the opening one: {{#name}} must be closed by {{/name}} with the identical identifier.

When it happens

Trigger: Thrown at app/assets/javascripts/swagger-ui/lib/handlebars-1.0.0.js:719 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hpyhacking/peatio@dab8641137 (2026-08-23). Data as JSON: /api/errors/89fb2d962245b018. Report an issue: GitHub.