Skip to content

Commit 6d0e4d4

Browse files
committed
log for failed serialized response body
1 parent 97767d4 commit 6d0e4d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/replay/src/coreHandlers/util/fetchUtils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ async function _getResponseInfo(
164164
}
165165

166166
return buildNetworkRequestOrResponse(headers, size, undefined);
167-
} catch {
167+
} catch (error) {
168+
__DEBUG_BUILD__ && logger.warn('[Replay] Failed to serialize response body', error);
168169
// fallback
169170
return buildNetworkRequestOrResponse(headers, responseBodySize, undefined);
170171
}

0 commit comments

Comments
 (0)