swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

Clone the response in fetch HTTP client

Open depsimon opened this issue 1 year ago • 0 comments

In some cases when using the --unwrap-response-data and the API throw an error, I'd get the following error : TypeError: body used already for.

I noticed that in the fetch HTTP Client, the response was not cloned, preventing the use of the response afterwards.

This PR fixes this issue.

https://github.com/node-fetch/node-fetch/issues/533

depsimon avatar Dec 13 '23 09:12 depsimon