undici: TypeError: Invalid state: Writer has been released

ref:https://github.com/cloudflare/miniflare/issues/147

in vscode debugging, using will trigger an error.

image

     let res = await fetch("https://api.64clouds.com/v1/");

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Reactions: 3
  • Comments: 21 (10 by maintainers)

Most upvoted comments

@yemreak Yes, when using “node-fetch”, this error does not occur. This is my current workaround. (as stated above)

To ignore this, you can use:

error.message !== "Invalid state: Writer has been released" (set it for both of the two)

image image

@Uzlopak can you reduce it to simple reproduction?