Kong/insomnia · error · Error

[plugin-window] Template tag not found

Error message

[plugin-window] Template tag not found: ${pluginName}/${tagName}

What it means

runTemplateTagAction could not find a template tag matching the given pluginName/tagName among the discovered plugins, so the requested tag action cannot run.

Solutions

  1. Verify the plugin that provides the template tag is installed and enabled
  2. Check that pluginName and tagName are spelled exactly as the plugin declares them
  3. Confirm the plugin's template tag is registered via getTemplateTags before invoking its action
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/insomnia/src/plugins/invoke-method.ts:191 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26). Data as JSON: /api/errors/0ac4040d9802578d. Report an issue: GitHub.

Appendix: source

Thrown at packages/insomnia/src/plugins/invoke-method.ts:191

    case 'executePluginMainAction': {
      return executePluginMainAction(args as ExecutePluginMainActionArgs);
    }

    case 'getTemplateTags': {
      const tags = await getTemplateTags();
      return tags.map(({ plugin, templateTag }) => ({
        pluginName: plugin.name,
        // eslint-disable-next-line unicorn/prefer-structured-clone
        templateTag: JSON.parse(JSON.stringify(templateTag)),
      }));
    }

    case 'runTemplateTagAction': {
      const { pluginName, tagName, actionName } = args as RunTemplateTagActionArgs;
      const tags = await getTemplateTags();
      const tag = tags.find(t => t.plugin.name === pluginName && t.templateTag.name === tagName);
      if (!tag) {
        throw new Error(`[plugin-window] Template tag not found: ${pluginName}/${tagName}`);
      }
      const action = tag.templateTag.actions?.find((a: any) => a.name === actionName);
      if (!action) {
        throw new Error(`[plugin-window] Tag action not found: ${actionName}`);
      }
      await action.run(pluginStore.init(tag.plugin));
      return null;
    }

    case 'hasRequestHooks': {
      const hooks = await getRequestHooks();
      return hooks.length > 0;
    }

    case 'hasResponseHooks': {
      const hooks = await getResponseHooks();
      return hooks.length > 0;
    }

View on GitHub (pinned to d9bb2b0142)