CopilotKit/CopilotKit · error · Error
Response.clone() is not supported by the React Native stream
Error message
Response.clone() is not supported by the React Native streaming fetch polyfill.
What it means
Error "Response.clone() is not supported by the React Native streaming fetch polyfill." thrown in CopilotKit/CopilotKit.
Source
Thrown at packages/react-native/src/streaming-fetch.ts:342
},
arrayBuffer: async () => {
bodyUsed = true;
return encoder.encode(await fullTextPromise).buffer;
},
blob: async () => {
bodyUsed = true;
const buf = encoder.encode(await fullTextPromise);
if (typeof Blob !== "undefined") {
return new Blob([buf], {
type: responseHeaders.get("content-type") || "",
});
}
throw new Error(
"Blob is not available in this React Native environment.",
);
},
clone: () => {
throw new Error(
"Response.clone() is not supported by the React Native streaming fetch polyfill.",
);
},
formData: async () => {
throw new Error(
"Response.formData() is not supported by the React Native streaming fetch polyfill.",
);
},
};
settled = true;
// NOTE: abort listener is NOT removed here — the signal must remain
// wired to xhr.abort() for mid-stream cancellation. Cleanup happens
// in terminal handlers (onload, onerror, ontimeout) or onAbort itself.
resolve(resp as unknown as Response);
}
}, 0);
};
View on GitHub (pinned to 68fbe97d87)
When it happens
Trigger: Thrown at packages/react-native/src/streaming-fetch.ts:342 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of CopilotKit/CopilotKit@68fbe97d87 (2026-08-27).
Data as JSON: /api/errors/8567e3b1da0c4d94.
Report an issue: GitHub.