Skip to content

throw error(204) returns invalid response #7765

@benmccann

Description

@benmccann

Describe the bug

Undici is fails to fetch an endpoint which returns throw error(204) because it expects there to be no body. Users cannot currently save in the REPL as a result

Reproduction

https://github.com/sveltejs/sites/blob/9c15c79b4bcdf043166b4b3974576e86bb783289/sites/svelte.dev/src/routes/(authed)/repl/%5Bid%5D.json/%2Bserver.js#L98

Logs

No response

System Info

`master`

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions