{"record":{"id":"42d299a1ca7b9d33","repo":"diegosouzapw/OmniRoute","slug":"aborterror","errorCode":"AbortError","errorMessage":"Aborted","messagePattern":"Aborted","errorType":"exception","errorClass":"DOMException","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chipotle.ts","lineNumber":207,"sourceCode":"      }\n    } catch {\n      // plain text\n    }\n\n    for (const [id, cb] of this.messageCallbacks.entries()) {\n      cb(text);\n      this.messageCallbacks.delete(id);\n    }\n  }\n\n  async chat(message: string, timeoutMs = 15_000, signal?: AbortSignal | null): Promise<string> {\n    if (!this.stompConnected) {\n      await this.init();\n      await this.connect();\n    }\n\n    if (signal?.aborted) {\n      throw new DOMException(\"Aborted\", \"AbortError\");\n    }\n\n    const callbackId = crypto.randomUUID();\n\n    return new Promise<string>((resolve, reject) => {\n      const timer = setTimeout(() => {\n        this.messageCallbacks.delete(callbackId);\n        reject(new Error(\"Response timeout\"));\n      }, timeoutMs);\n\n      const onAbort = () => {\n        clearTimeout(timer);\n        this.messageCallbacks.delete(callbackId);\n        reject(new DOMException(\"Aborted\", \"AbortError\"));\n      };\n      signal?.addEventListener(\"abort\", onAbort, { once: true });\n\n      this.messageCallbacks.set(callbackId, (text) => {","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chipotle.ts#L189-L225","documentation":"Error \"Aborted\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/chipotle.ts:207 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}