Skip to content

@sentry/solidstart withSentry breaks SolidStart aws-lambda streaming responses #20857

Closed

Description

@miketbai

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/solidstart

SDK Version

10.52.0

Framework Version

@solidjs/start: 1.1.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

Environment

  • Runtime: AWS Lambda, Node.js 24
  • SolidStart server preset: aws-lambda
  • Lambda response streaming: enabled via server.awsLambda.streaming = true

Problem

When 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.

For example, a Better Auth /api/auth/get-session call returns:

{
  "statusCode": 200,
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"session\":{...},\"user\":{...}}",
  "isBase64Encoded": false
}

Steps to Reproduce

The SolidStart app.config.ts file:

import { defineConfig } from "@solidjs/start/config";
import { withSentry } from "@sentry/solidstart";

export default defineConfig(
	withSentry(
		{
			ssr: false,
			middleware: "./middleware.ts",
			server: {
				preset: "aws-lambda",
				//awsLambda: {
					//streaming: true,
				//},
			},
			vite: {
				build: {
					sourcemap: true,
				},
			},
		},
		{ org: "foo", project: "bar", authToken: process.env.SENTRY_AUTH_TOKEN },
	),
);

If you uncomment the awsLambda streaming: true then things break.

Expected Result

For example, a Better Auth /api/auth/get-session call should return:

{
  "session": { ... },
  "user": { ... }
}

Actual Result

But instead it returns the lambda wrapper like this:

{
  "statusCode": 200,
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"session\":{...},\"user\":{...}}",
  "isBase64Encoded": false
}

Additional Context

Looks like this bug has been fixed in other SDK's from this bug
But the pull request that fixes it doesn't list SolidStart as one that it fixed and is still a bug with streaming in SolidStart.

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

  1. linear-code commented on May 13, 2026

    @linear-code
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 13, 2026
  3. andreiborza commented on May 13, 2026

    @andreiborza
    Member

    Hi @miketbai, thanks for filing this.

    I think this might be because nitro's aws preset registers some hooks we waltz over. I'll take a look.

  4. self-assigned this
    on May 13, 2026
  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 13, 2026
  6. added a commit that references this issue on May 13, 2026
    d8e4d24
  7. github-actions commented on May 26, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #20861, which was included in the 10.54.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions