Title: [Replay] Read response body stream instead of `body.text()` · Issue #9635 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Replay] Read response body stream instead of `body.text()` · Issue #9635 · getsentry/sentry-javascript
X Title: [Replay] Read response body stream instead of `body.text()` · Issue #9635 · getsentry/sentry-javascript
Description: Currently, we use await body.text() to get the response body of a fetch request for replay, both to get the body content as well as to calculate the length of the body. This has the problem that if the body is a continuous stream, this w...
Open Graph Description: Currently, we use await body.text() to get the response body of a fetch request for replay, both to get the body content as well as to calculate the length of the body. This has the problem that if...
X Description: Currently, we use await body.text() to get the response body of a fetch request for replay, both to get the body content as well as to calculate the length of the body. This has the problem that if...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/9635
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Replay] Read response body stream instead of `body.text()`","articleBody":"Currently, we use `await body.text()` to get the response body of a fetch request for replay, both to get the body content as well as to calculate the length of the body.\r\n\r\nThis has the problem that if the body is a continuous stream, this will never (or very late) resolve. We kind-of solved this recently at least insofar as that we abort after 500ms, but since we still called `await body.text()` before we'll continue to read from the stream, even if we are discarding it.\r\n\r\nWe should look into reading the stream manually instead of using `body.text()`, which would unlock us being able to stop reading it after some time. But this means we need to take care of text conversion in there ourselves.\r\n\r\nRelated to https://github.com/getsentry/sentry-javascript/issues/9616","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-11-22T12:01:36Z","url":"https://github.com/getsentry/sentry-javascript/issues/9635"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f55bc582-88e7-a6c7-3019-0f2cd5ab3dd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C134:21A483:1CF864B:26FE4C4:6B04453B |
| html-safe-nonce | cf4b5469c6a1f3a370b3f0a20cebb35af85d8452d2ab015ccb5b95fd50ebc2bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTM0OjIxQTQ4MzoxQ0Y4NjRCOjI2RkU0QzQ6NkIwNDQ1M0IiLCJ2aXNpdG9yX2lkIjoiODQzNDg3MTE4NjE4OTczMTEzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5e4d9300f357656992aa9678ad3f53c9ca7bf977d96a24a05e195d97f1b32000 |
| hovercard-subject-tag | issue:2006192730 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/9635/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a57f76d32847826baee963c76772022bae2e7893a34392e07c39817708fbe4d/getsentry/sentry-javascript/issues/9635 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a57f76d32847826baee963c76772022bae2e7893a34392e07c39817708fbe4d/getsentry/sentry-javascript/issues/9635 |
| og:image:alt | Currently, we use await body.text() to get the response body of a fetch request for replay, both to get the body content as well as to calculate the length of the body. This has the problem that if... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width