undici: TypeError: Invalid state: Writer has been released
ref:https://github.com/cloudflare/miniflare/issues/147
in vscode debugging, using will trigger an error.
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)
@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)@Uzlopak can you reduce it to simple reproduction?