Title: Getting ERR_STREAM_WRITE_AFTER_END after #4139 · Issue #4151 · getsentry/sentry-javascript · GitHub
Open Graph Title: Getting ERR_STREAM_WRITE_AFTER_END after #4139 · Issue #4151 · getsentry/sentry-javascript
X Title: Getting ERR_STREAM_WRITE_AFTER_END after #4139 · Issue #4151 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4151
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting ERR_STREAM_WRITE_AFTER_END after #4139","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [x] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/next-js` \r\n\r\n### Version:\r\n\r\n```\r\n6.14.3\r\n```\r\n\r\n## Description\r\n\r\nHi! I'm using Sentry with a [Blitzjs](https://blitzjs.com/) stack, which is a mildly abstracted version of Next.js. Generally, the Next.js sentry module works very well, but after 6.14.3, I experienced crashes on any request in prod:\r\n\r\n```\r\nNov 11 04:11:01 PM Error [ERR_STREAM_WRITE_AFTER_END] [ERR_STREAM_WRITE_AFTER_END]: write after end\r\nNov 11 04:11:01 PM at writeAfterEnd (_http_outgoing.js:694:15)\r\nNov 11 04:11:01 PM at write_ (_http_outgoing.js:706:5)\r\nNov 11 04:11:01 PM at ServerResponse.write (_http_outgoing.js:687:15)\r\nNov 11 04:11:01 PM at ServerResponse.write (/opt/render/project/src/node_modules/next/dist/compiled/compression/index.js:1:4006)\r\nNov 11 04:11:01 PM at Request.ondata (internal/streams/readable.js:745:22)\r\nNov 11 04:11:01 PM at Request.emit (events.js:376:20)\r\nNov 11 04:11:01 PM at Request.emit (domain.js:532:15)\r\nNov 11 04:11:01 PM at addChunk (internal/streams/readable.js:309:12)\r\nNov 11 04:11:01 PM at readableAddChunk (internal/streams/readable.js:284:9)\r\nNov 11 04:11:01 PM at Request.Readable.push (internal/streams/readable.js:223:10)\r\n```\r\n\r\nThis is noted in the PR itself, and appears to not affect Next.js in some configurations, but clearly affects my relatively vanilla setup of Blitz running on Render (and the bug also appears locally). I'll try to figure out if this is purely a Blitz-level occurrence or something that manifests in Render on serverful non-Lambda environments as well. I've set up the `externalResolver` option as suggested to avoid the error message that this PR attempts to fix systematically.","author":{"url":"https://github.com/tmcw","@type":"Person","name":"tmcw"},"datePublished":"2021-11-11T23:18:22Z","url":"https://github.com/getsentry/sentry-javascript/issues/4151"}
| 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:28fe0efc-859d-41ec-77d0-8ddd50bf023b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA2E:F4D72:20381C:2BC26A:6B0431D8 |
| html-safe-nonce | f4c92c9763b15a616c30673345d95c32aa8aeaed402319a1f74c1c7e1f625e26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTJFOkY0RDcyOjIwMzgxQzoyQkMyNkE6NkIwNDMxRDgiLCJ2aXNpdG9yX2lkIjoiNzY3MzYwODI3NzU4NjA5NjYwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c89489f695403ea9f92be4bbaaf2e2442e4eb64a65a9879a395c1b068890cc7 |
| hovercard-subject-tag | issue:1051438116 |
| 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/4151/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ab18ae6eeeecd9008d5b9bd2c5ec59209880e346079ec4d72205a36556593a5/getsentry/sentry-javascript/issues/4151 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ab18ae6eeeecd9008d5b9bd2c5ec59209880e346079ec4d72205a36556593a5/getsentry/sentry-javascript/issues/4151 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tmcw |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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