Title: @sentry/solidstart withSentry breaks SolidStart aws-lambda streaming responses · Issue #20857 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/solidstart withSentry breaks SolidStart aws-lambda streaming responses · Issue #20857 · getsentry/sentry-javascript
X Title: @sentry/solidstart withSentry breaks SolidStart aws-lambda streaming responses · Issue #20857 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/20857
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/solidstart withSentry breaks SolidStart aws-lambda streaming responses","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/solidstart\n\n### SDK Version\n\n10.52.0\n\n### Framework Version\n\n@solidjs/start: 1.1.0\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n### Environment\n\n- Runtime: AWS Lambda, Node.js 24\n- SolidStart server preset: `aws-lambda`\n- Lambda response streaming: enabled via `server.awsLambda.streaming = true`\n\n### Problem\n\nWhen wrapping my SolidStart config with `withSentry(...)`, routes deployed to AWS start returning the Lambda response object as JSON to the browser instead of the actual response body. If I comment out the lambda streaming then it works fine.\n\nFor example, a Better Auth `/api/auth/get-session` call returns:\n\n```json\n{\n \"statusCode\": 200,\n \"headers\": {\n \"content-type\": \"application/json\"\n },\n \"body\": \"{\\\"session\\\":{...},\\\"user\\\":{...}}\",\n \"isBase64Encoded\": false\n}\n```\n\n### Steps to Reproduce\n\nThe SolidStart app.config.ts file:\n\n```js\nimport { defineConfig } from \"@solidjs/start/config\";\nimport { withSentry } from \"@sentry/solidstart\";\n\nexport default defineConfig(\n\twithSentry(\n\t\t{\n\t\t\tssr: false,\n\t\t\tmiddleware: \"./middleware.ts\",\n\t\t\tserver: {\n\t\t\t\tpreset: \"aws-lambda\",\n\t\t\t\t//awsLambda: {\n\t\t\t\t\t//streaming: true,\n\t\t\t\t//},\n\t\t\t},\n\t\t\tvite: {\n\t\t\t\tbuild: {\n\t\t\t\t\tsourcemap: true,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{ org: \"foo\", project: \"bar\", authToken: process.env.SENTRY_AUTH_TOKEN },\n\t),\n);\n```\n\nIf you uncomment the awsLambda streaming: true then things break.\n\n\n### Expected Result\n\nFor example, a Better Auth `/api/auth/get-session` call should return:\n\n```json\n{\n \"session\": { ... },\n \"user\": { ... }\n}\n```\n\n### Actual Result\n\nBut instead it returns the lambda wrapper like this:\n\n```json\n{\n \"statusCode\": 200,\n \"headers\": {\n \"content-type\": \"application/json\"\n },\n \"body\": \"{\\\"session\\\":{...},\\\"user\\\":{...}}\",\n \"isBase64Encoded\": false\n}\n```\n\n### Additional Context\n\nLooks like this bug has been fixed in other SDK's from this [bug](https://github.com/getsentry/sentry-javascript/issues/15774)\nBut the [pull request](https://github.com/getsentry/sentry-javascript/pull/17463) that fixes it doesn't list SolidStart as one that it fixed and is still a bug with streaming in SolidStart.\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/miketbai","@type":"Person","name":"miketbai"},"datePublished":"2026-05-13T05:14:02Z","url":"https://github.com/getsentry/sentry-javascript/issues/20857"}
| 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:362eaff0-9c83-c0ca-abfd-181300cbdb70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87DC:3B15E5:6F5CF7:9B0181:6B0595BE |
| html-safe-nonce | bf76a5016fb34b757a6b63f91c062b33bf69cedeaf542844c070a560a33298e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0RDOjNCMTVFNTo2RjVDRjc6OUIwMTgxOjZCMDU5NUJFIiwidmlzaXRvcl9pZCI6IjM2NzE3MTg0MzAxOTQ4OTgzNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f6ad3c5ed9a61904c5817519306c2ad244f928c96c249ebd97ba81b18afbde34 |
| hovercard-subject-tag | issue:4435043110 |
| 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/20857/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d65e748c56713a356146f789c0f905209df95eaac02f3dffe681d8de68cbef0c/getsentry/sentry-javascript/issues/20857 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d65e748c56713a356146f789c0f905209df95eaac02f3dffe681d8de68cbef0c/getsentry/sentry-javascript/issues/20857 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miketbai |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| 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 | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| 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