{"record":{"id":"750a81e9318986d2","repo":"diegosouzapw/OmniRoute","slug":"request-to-url-timed-out-after-timeoutms-ms","errorCode":null,"errorMessage":"Request to ${url} timed out after ${timeoutMs}ms","messagePattern":"Request to (.+?) timed out after (.+?)ms","errorType":"exception","errorClass":"FetchTimeoutError","httpStatus":null,"severity":"error","filePath":"src/shared/utils/fetchTimeout.ts","lineNumber":45,"sourceCode":"  // If an external signal was provided, wire it to abort our controller too\n  if (externalSignal) {\n    if (externalSignal.aborted) {\n      controller.abort();\n    } else {\n      externalSignal.addEventListener(\"abort\", () => controller.abort(), { once: true });\n    }\n  }\n\n  try {\n    const doFetch = fetchFn || globalThis.fetch;\n    const response = await doFetch(url, {\n      ...fetchOptions,\n      signal: controller.signal,\n    });\n    return response;\n  } catch (error: any) {\n    if (error.name === \"AbortError\") {\n      throw new FetchTimeoutError(\n        `Request to ${url} timed out after ${timeoutMs}ms`,\n        timeoutMs,\n        String(url)\n      );\n    }\n    throw error;\n  } finally {\n    clearTimeout(timeoutId);\n  }\n}\n\n/**\n * Error thrown on fetch timeout.\n */\nexport class FetchTimeoutError extends Error {\n  timeoutMs: number;\n  url: string;\n","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/shared/utils/fetchTimeout.ts#L27-L63","documentation":"Error \"Request to ${url} timed out after ${timeoutMs}ms\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/shared/utils/fetchTimeout.ts:45 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"}