diegosouzapw/OmniRoute · error

EXECUTOR_ERROR

EXECUTOR_ERROR

Error message

${msg}

What it means

Catch-all in TheOldLlmExecutor.execute: an exception escaped the request pipeline (network failure, proxy setup error, parse crash). It is logged as THEOLDLLM Executor error and the message is returned as a sanitized upstream_error response; the proxy-unavailable case is special-cased before this generic path.

Solutions

  1. Check the THEOLDLLM log line for the raw error message
  2. Verify network/proxy reachability to theoldllm.com
  3. Retry the request; if persistent, reproduce with debug logging
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at open-sse/executors/theoldllm.ts:446 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/5624f2a105add935. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/executors/theoldllm.ts:446

      const errorPayload = vercelMitigated
        ? buildVercelMitigationError()
        : buildErrorResponse(upstream.status, finalBody);
      return this.executionResult(
        input,
        new Response(encoder.encode(errorPayload), {
          status: upstream.status,
          headers: { "Content-Type": "application/json" },
        }),
        body
      );
    } catch (err) {
      const proxyUnavailable = err instanceof TheOldLlmProxyUnavailableError;
      const msg = err instanceof Error ? err.message : String(err);
      log?.error?.("THEOLDLLM", `Executor error: ${msg}`);
      const errorPayload = proxyUnavailable
        ? buildProxyUnavailableError()
        : JSON.stringify({
            error: { message: msg, type: "upstream_error", code: "EXECUTOR_ERROR" },
          });
      return this.executionResult(
        input,
        new Response(encoder.encode(errorPayload), {
          status: proxyUnavailable ? 503 : 502,
          headers: { "Content-Type": "application/json" },
        }),
        body
      );
    }
  }
}

export default TheOldLlmExecutor;

View on GitHub (pinned to a179ffed5b)