{"record":{"id":"46a9148c7caabc2e","repo":"diegosouzapw/OmniRoute","slug":"claude-web-browser-response-exceeded-the-size-limi","errorCode":null,"errorMessage":"Claude Web browser response exceeded the size limit","messagePattern":"Claude Web browser response exceeded the size limit","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/claude-web/browserTransport.ts","lineNumber":274,"sourceCode":"  };\n}\n\nexport async function fetchClaudeWebPageResponse(\n  page: Page,\n  input: ClaudeWebBrowserFetchInput\n): Promise<{ status: number; headers: Record<string, string>; body: Uint8Array }> {\n  const captured = await page.evaluate(async ({ url, headers, body, maxBytes }) => {\n    const response = await fetch(url, {\n      method: \"POST\",\n      headers,\n      body,\n      credentials: \"include\",\n    });\n    const responseHeaders = Object.fromEntries(response.headers.entries());\n    const declaredLength = Number.parseInt(response.headers.get(\"content-length\") ?? \"\", 10);\n    if (Number.isFinite(declaredLength) && declaredLength > maxBytes) {\n      await response.body?.cancel().catch(() => {});\n      throw new Error(\"Claude Web browser response exceeded the size limit\");\n    }\n\n    const reader = response.body?.getReader();\n    const bodyChunks: string[] = [];\n    let totalBytes = 0;\n    const encodeBase64 = (bytes: Uint8Array): string => {\n      let binary = \"\";\n      const sliceSize = 32 * 1024;\n      for (let offset = 0; offset < bytes.byteLength; offset += sliceSize) {\n        binary += String.fromCharCode(...bytes.subarray(offset, offset + sliceSize));\n      }\n      return btoa(binary);\n    };\n\n    try {\n      while (reader) {\n        const { value, done } = await reader.read();\n        if (done) break;","sourceCodeStart":256,"sourceCodeEnd":292,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/claude-web/browserTransport.ts#L256-L292","documentation":"Error \"Claude Web browser response exceeded the size limit\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/claude-web/browserTransport.ts:274 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"}