hpyhacking/peatio · error · Handlebars.Exception

Arg not supported with multiple helpers

Error message

Arg not supported with multiple helpers

What it means

Error "Arg not supported with multiple helpers" thrown in hpyhacking/peatio.

Source

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

Handlebars.COMPILER_REVISION = 4;

Handlebars.REVISION_CHANGES = {
  1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it
  2: '== 1.0.0-rc.3',
  3: '== 1.0.0-rc.4',
  4: '>= 1.0.0'
};

Handlebars.helpers  = {};
Handlebars.partials = {};

var toString = Object.prototype.toString,
    functionType = '[object Function]',
    objectType = '[object Object]';

Handlebars.registerHelper = function(name, fn, inverse) {
  if (toString.call(name) === objectType) {
    if (inverse || fn) { throw new Handlebars.Exception('Arg not supported with multiple helpers'); }
    Handlebars.Utils.extend(this.helpers, name);
  } else {
    if (inverse) { fn.not = inverse; }
    this.helpers[name] = fn;
  }
};

Handlebars.registerPartial = function(name, str) {
  if (toString.call(name) === objectType) {
    Handlebars.Utils.extend(this.partials,  name);
  } else {
    this.partials[name] = str;
  }
};

Handlebars.registerHelper('helperMissing', function(arg) {
  if(arguments.length === 2) {
    return undefined;

View on GitHub (pinned to dab8641137)

Solutions

  1. Do not pass an argument to an expression built from multiple helpers; split it into nested subexpressions like (helper1 (helper2 arg)) or use a single helper.

When it happens

Trigger: Thrown at app/assets/javascripts/swagger-ui/lib/handlebars-1.0.0.js:51 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/569711bcdbad48f2. Report an issue: GitHub.