diegosouzapw/OmniRoute · error · DOMException

AbortError

AbortError

Error message

Aborted

What it means

Error "Aborted" thrown in diegosouzapw/OmniRoute.

Source

Thrown at open-sse/executors/chipotle.ts:207

      }
    } catch {
      // plain text
    }

    for (const [id, cb] of this.messageCallbacks.entries()) {
      cb(text);
      this.messageCallbacks.delete(id);
    }
  }

  async chat(message: string, timeoutMs = 15_000, signal?: AbortSignal | null): Promise<string> {
    if (!this.stompConnected) {
      await this.init();
      await this.connect();
    }

    if (signal?.aborted) {
      throw new DOMException("Aborted", "AbortError");
    }

    const callbackId = crypto.randomUUID();

    return new Promise<string>((resolve, reject) => {
      const timer = setTimeout(() => {
        this.messageCallbacks.delete(callbackId);
        reject(new Error("Response timeout"));
      }, timeoutMs);

      const onAbort = () => {
        clearTimeout(timer);
        this.messageCallbacks.delete(callbackId);
        reject(new DOMException("Aborted", "AbortError"));
      };
      signal?.addEventListener("abort", onAbort, { once: true });

      this.messageCallbacks.set(callbackId, (text) => {

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at open-sse/executors/chipotle.ts:207 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/42d299a1ca7b9d33. Report an issue: GitHub.