Closed muka closed 7 months ago
@muka thanks for creating the issue. Do you know if this issue is present in the node (with node-fetch) or fetch clients? I believe this is axios+node only but want to verify
@muka is this a regression?
@jordanshatford in my case it is, do you want me to try with the node+fetch ?
@mrlubos not sure, switched to this lib a day ago
@muka if you could that would be great. I have put up a PR that does fix your issue using axios+node but need to discuss further before it is merged and released
I did check node myself and did not see the error, I was able to reproduce with axios and after my PR changes it was not longer throwing error
Tried and with fetch
client work without the issue. Thank you!
@muka glad to hear that. the latest version released today should have that fixed for axios aswell if you prefer it!
Describe the bug
Hi, I am trying this with node v20.x uploading to a remote server.
The generated client uses axios and has multipart
formData
generated field.I tried to populate the object with fields and a blob, but server side I got an empty file upload.
This ended up working
my client package.json
the error from the client (but seems from axios actually)
Using a Buffer result in an empty file server side.
Using a FormData as input still works. Why not just allow FormData type for node+axios ?
OpenAPI specification
Client
Axios
Generated client
https://github.com/sermas-eu/sermas-api-client
System information
Severity
annoyance
Additional information
Discussed in comments in https://github.com/hey-api/openapi-ts/issues/29