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

cosmos response.clone() issue #245

Open
grimclaw opened this issue May 2, 2023 · 0 comments
Open

cosmos response.clone() issue #245

grimclaw opened this issue May 2, 2023 · 0 comments

Comments

@grimclaw
Copy link

grimclaw commented May 2, 2023

Currently working with @cfworker/cosmos 1.13.5

Using the createDocument function wrangler dev warns the following:

Your worker called response.clone(), but did not read the body of both clones...

I believe the affected line is const retryRequest = request.clone(); in client.ts

Removing the clone from the dist/client.js file removes the warning and, from some lite testing, doesn't appear to affect functionality but I have not tested all cases.

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

No branches or pull requests

1 participant