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
Doesn't play nice with node v18 undici fetch #533
Comments
instead of using form-data use the FormData provided by nodejs/undici itself |
@jimmywarting and forego all the nice features? |
like what features? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Node 18 the standards-compliant undici fetch is available, and it accepts Node's Readable Stream as a body as well as the standard Web Streams.
The problem is that
new FormData()
doesn't return an object that is recognized as aReadable
.Workaround:
You can test the problem in Node 18 by running the following, which will throw:
Probably Readable needs to be in the prototype chain?
The text was updated successfully, but these errors were encountered: