Content
@
https://warpcast.com/~/channel/developers
0 reply
0 recast
0 reaction
Paul Spencer
@pagameba
TIL node's native fetch (18-23) uses a library called `undici` which does not include a CRLF at the end of multipart/form-data which is a gray zone in RFC 7578 but basically makes form uploads using fetch not work with some endpoints (for me, pinata). Using axios works. The undici library recently updated to include CRLF so hopefully by node 24 we'll be able to move back to native fetch again for form uploads!
1 reply
0 recast
3 reactions
wasyl
@wasyl
I never use fetch, not because I dont like it, I was just using axios for so long before it became 'not experimental'. Axios early version zero days. I also dont like `await res.json()` - like come on, what are we waiting for to JSON parse some text????????
1 reply
0 recast
0 reaction