Skip to content

Response with null body status (101, 204, 205, or 304) cannot have a body #172

@grant0417

Description

@grant0417

When updating from 0.1.1 to 0.2.1 we started getting this error:

TypeError: Response with null body status (101, 204, 205, or 304) cannot have a body

I believe it originates from the changes to containerFetch:

if (res.body !== undefined) {
let { readable, writable } = new TransformStream();
res.body?.pipeTo(writable).finally(() => {
this.decrementInflight();
});
return new Response(readable, res);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions