{"record":{"id":"8567e3b1da0c4d94","repo":"CopilotKit/CopilotKit","slug":"response-clone-is-not-supported-by-the-react-nat","errorCode":null,"errorMessage":"Response.clone() is not supported by the React Native streaming fetch polyfill.","messagePattern":"Response\\.clone\\(\\) is not supported by the React Native streaming fetch polyfill\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-native/src/streaming-fetch.ts","lineNumber":342,"sourceCode":"              },\n              arrayBuffer: async () => {\n                bodyUsed = true;\n                return encoder.encode(await fullTextPromise).buffer;\n              },\n              blob: async () => {\n                bodyUsed = true;\n                const buf = encoder.encode(await fullTextPromise);\n                if (typeof Blob !== \"undefined\") {\n                  return new Blob([buf], {\n                    type: responseHeaders.get(\"content-type\") || \"\",\n                  });\n                }\n                throw new Error(\n                  \"Blob is not available in this React Native environment.\",\n                );\n              },\n              clone: () => {\n                throw new Error(\n                  \"Response.clone() is not supported by the React Native streaming fetch polyfill.\",\n                );\n              },\n              formData: async () => {\n                throw new Error(\n                  \"Response.formData() is not supported by the React Native streaming fetch polyfill.\",\n                );\n              },\n            };\n            settled = true;\n            // NOTE: abort listener is NOT removed here — the signal must remain\n            // wired to xhr.abort() for mid-stream cancellation. Cleanup happens\n            // in terminal handlers (onload, onerror, ontimeout) or onAbort itself.\n            resolve(resp as unknown as Response);\n          }\n        }, 0);\n      };\n","sourceCodeStart":324,"sourceCodeEnd":360,"githubUrl":"https://github.com/CopilotKit/CopilotKit/blob/68fbe97d87420bd84e8196965c71bd6e394a3f7a/packages/react-native/src/streaming-fetch.ts#L324-L360","documentation":"Error \"Response.clone() is not supported by the React Native streaming fetch polyfill.\" thrown in CopilotKit/CopilotKit.","triggerScenarios":"Thrown at packages/react-native/src/streaming-fetch.ts:342 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":"68fbe97d87420bd84e8196965c71bd6e394a3f7a","analyzedAt":"2026-08-27T04:03:26.537Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}