Kong/insomnia · error · Error

[plugin-window] Action not found

Error message

[plugin-window] Action not found: ${pluginName}/${label}

What it means

Lookup failure in invokePluginMethod: after loading actions for the given type, no entry matches both the requested pluginName and label, so the plugin window holds stale references to a renamed or removed action.

Solutions

  1. Reload the plugin window or refresh plugins so action references are rebuilt
  2. Verify the action still exists and its label is unchanged in the plugin
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/insomnia/src/plugins/invoke-method.ts:140 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/38c50e0b2dc607c4. Report an issue: GitHub.

Appendix: source

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

          allActions = await getRequestGroupActions();
          break;
        }
        case 'workspace': {
          allActions = await getWorkspaceActions();
          break;
        }
        case 'document': {
          allActions = await getDocumentActions();
          break;
        }
        default: {
          throw new Error(`[plugin-window] Unknown action type: ${type}`);
        }
      }

      const entry = allActions.find(a => a.plugin.name === pluginName && a.label === label);
      if (!entry) {
        throw new Error(`[plugin-window] Action not found: ${pluginName}/${label}`);
      }

      // A1/T1: a sandboxed user plugin's action (a throw-stub here after discovery) runs in the
      // main-process sandbox over the templating-worker-database protocol; bundle plugins, an
      // elevated plugin, and the flag-off path run in-process (see resolvePluginExecutionMode).
      const settings = await fetchFromTemplateWorkerDatabase('settings.get', {});
      if (shouldSandboxPlugin(settings, entry.plugin)) {
        await fetchFromTemplateWorkerDatabase('plugin.runUserAction', {
          plugin: { directory: entry.plugin.directory, name: entry.plugin.name, permissions: entry.plugin.permissions },
          actionKind: type,
          actionLabel: label,
          actionDomainData: domainData,
        });
        return null;
      }

      const context = {
        ...pluginApp.init(),

View on GitHub (pinned to d9bb2b0142)