diegosouzapw/OmniRoute · error

Handler not found: ${skill.handler}

Error message

Handler not found: ${skill.handler}

What it means

Error "Handler not found: ${skill.handler}" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/skills/executor.ts:91

        SkillStatus.RUNNING,
        new Date().toISOString()
      );

      let handler = this.handlers.get(skill.handler);
      if (!handler) {
        // Builtin handlers are registered by instrumentation-node at startup,
        // but Next.js may compile this module into multiple chunks (each with
        // its own SkillExecutor singleton). Fall back to the builtin registry
        // so `POST /api/skills/executions` works regardless of which chunk the
        // route is served from.
        const builtin = builtinSkills[skill.handler];
        if (builtin) {
          this.handlers.set(skill.handler, builtin);
          handler = builtin;
        }
      }
      if (!handler) {
        throw new Error(`Handler not found: ${skill.handler}`);
      }

      let output: Record<string, unknown> | null = null;
      let errorMessage: string | null = null;
      let status = SkillStatus.SUCCESS;

      try {
        const result = await this.executeWithTimeout(
          handler(input, { apiKeyId: context.apiKeyId, sessionId: context.sessionId || "" })
        );
        output = result;
      } catch (err) {
        errorMessage = err instanceof Error ? err.message : String(err);
        status = SkillStatus.ERROR;
      }

      const durationMs = Date.now() - startTime;

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/skills/executor.ts:91 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/af6500bb2f5491cf. Report an issue: GitHub.