Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone the response in fetch HTTP client #670

Merged
merged 2 commits into from
May 9, 2024
Merged

Conversation

depsimon
Copy link
Contributor

@depsimon depsimon commented Dec 13, 2023

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.

node-fetch/node-fetch#533

Signed-off-by: Sora Morimoto <sora@morimoto.io>
@smorimoto smorimoto merged commit 2f38757 into acacode:main May 9, 2024
1 check passed
@sirflyingv
Copy link

So this is why I get this kind of errors now
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants