Yaak Logo
Yaak
Feedback/Errors when using multipart/form-data for file payloads over 1MB in size

Errors when using multipart/form-data for file payloads over 1MB in size

PurplProto ·a year ago
Needs ReproductionBug

I’m getting errors when trying to send file(s) totalling over 1MB in size to my API.
I’ve confirmed this isn’t an issue with my API by using to curl to successfully upload a 100MB file without issue.

If repeat send the request, I seem to get a mixture of 3 different errors:

error sending request for url (http://localhost:3042/document/upload) → reqwest::Error { kind: Request, url: "http://localhost:3042/document/upload", source: hyper_util::client::legacy::Error(SendRequest, hyper::Error(BodyWrite, Os { code: 54, kind: ConnectionReset, message: "Connection reset by peer" })) }

error sending request for url (http://localhost:3042/document/upload) → reqwest::Error { kind: Request, url: "http://localhost:3042/document/upload", source: hyper_util::client::legacy::Error(SendRequest, hyper::Error(IncompleteMessage)) }

error sending request for url (http://localhost:3042/document/upload) → reqwest::Error { kind: Request, url: "http://localhost:3042/document/upload", source: hyper_util::client::legacy::Error(SendRequest, hyper::Error(BodyWrite, Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })) }

Mac2025.1.2

Comments (3)

Sign in to leave a comment.

Gregory Schier

Is there a chance you can post a sample project (or public endpoint) that I can use to reproduce this?

PurplProto OP

I can’t share the actual code or files I’m using, but I’ve created a repo that I can recreate the issue with on my work Mac.

https://github.com/PurplProto/yaak-file-upload-bug-repro

I’ll give this a test on my Linux desktop too, might have to wait until after I’ve finished work for the day to check on there. Currently waiting for Yaak to download, Github seems awfully slow today for some reason 😅

Managed to give it a try on my Linux desktop. I’m unable to reproduce the errors there, so it might just be limited to Mac? 🤔

PurplProto OP

I’ve also tested with a different API client on my work mac to ensure it’s not an issue with my company’s proxy software, although curl already worked, thought it was worth checking anyway in case there’s something odd they’ve done with GUI apps only.

Type to search feedback...