diff --git a/src/loader-recorder-v2.ts b/src/loader-recorder-v2.ts index 9a666a75a..909af72ba 100644 --- a/src/loader-recorder-v2.ts +++ b/src/loader-recorder-v2.ts @@ -397,10 +397,7 @@ async function _tryReadBody(res: Response): Promise { // there are now already multiple places where we're using Promise... // eslint-disable-next-line compat/compat return new Promise((resolve, reject) => { - const timeout = setTimeout( - () => reject(new Error('[rrweb/network@1] Timeout while trying to read response body')), - 250 - ) + const timeout = setTimeout(() => resolve('[rrweb/network@1] Timeout while trying to read response body'), 250) res.clone() .text() .then(