Skip to content

_parseFetchBody get body.text() never returns when fetch is a flv live stream #9616

Closed
@yjhtry

Description

@yjhtry

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/nextjs

SDK Version

7.75.1

Framework Version

13.4.19

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

In my web application, I implement video live streaming by fetching flv files. During the test, the space of the page process will grow rapidly as the live broadcast progresses. When I checked the source code, I found that the _parseFetchBody method will obtain the text returned by the flv file. Get responseBodySize through it, but this is an operation that will not end(At least until the live broadcast ends)

_parseFetchBody

image

What's worse is that due to response.clone(), when flv fetch changes or is re-fetched, _parseFetchBody will cause more and more fechts to be processed in the network

2023-11-21.17.16.53.mov

Expected Result

I can ignore the target fetch through parameter settings, or increase the timeout of _parseFetchBody, or all your good ideas

Actual Result

2023-11-21.17.37.12.mov

At this speed, the webpage will crash in about an hour or so 😂

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: replayIssues related to the Sentry Replay SDK

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions