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

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" })) }

Please authenticate to join the conversation.

Upvoters
Status

Needs Reproduction

Board

Feedback

Tags

Bug

Date

About 1 year ago

Author

PurplProto

Subscribe to post

Get notified by email when there are changes.