Skip to content

Aws Lambda Streaming responses don't work without response bodies. #204

@taylorfsteele

Description

@taylorfsteele

Environment

AWS Lambda Node 24

Reproduction

N/A

Describe the bug

When using the AWS Lambda Streaming handler, responses that don't have bodies break.

Inside my framework, I'm trying to return a redirect response from a route:

return new Response(null, {
      status: 302,
      headers: {
        location: "/",
      },
    });

But when deployed with the preset, the lambda breaks and eventually times out.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions