Skip to content

Error: "Body is unusable: Body has already been read" after updating to 13.2.9 #1397

@dagsommer

Description

@dagsommer

After response.clone() was removed in #1385 , our generated client is giving the error
"Body is unusable: Body has already been read"

By reverting to swagger-typescript-api v. 13.2.8 and regenerating, the errors disappear, with the only diff is the .clone()

I'm curious as to why this was removed so quickly when it's clear from #670 that there was a use case for it.

As of now, we have to keep using the outdated package version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions