roadrunner icon indicating copy to clipboard operation
roadrunner copied to clipboard

[🐛 BUG]: RR cannot parse larger multipart form data

Open FluffyDiscord opened this issue 1 year ago • 1 comments

No duplicates 🥲.

  • [X] I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

RoadRunner is unable to parse larger multipart form data.

In my case the whole POST body is around 260KB whoch is not really a lot and contains a moderate amount of inputs. RoadRunner throws error 500 with message serve_http: multipart: message too large.

The current workaround is to send JSON instead, but mapping FormData to JSON and back can be prone to errors.

Version (rr --version)

2023.3.9

How to reproduce the issue?

curl.txt

Relevant log output

No response

FluffyDiscord avatar Feb 02 '24 06:02 FluffyDiscord

Hey @FluffyDiscord 👋 Thanks for the report 👍 This issue will be addresses after some HTTP plugin internal updates (move to proto, update multipart algorithm). If that issue is critical for you, you may fork the HTTP plugin and increase this value: link and then build your RR binary with Velox

rustatian avatar Feb 02 '24 14:02 rustatian

This has not been solved for me. Maybe the issue is that the content-type is multipart/form-data; boundary=---- ?

FluffyDiscord avatar Apr 15 '24 11:04 FluffyDiscord

Not confirmed as a RR issue. Thread: https://discord.com/channels/538114875570913290/1229393196648366201

rustatian avatar Apr 17 '24 17:04 rustatian

I'm having the same issue. When I try to submit a request with multiple array input fields that are over 256KB, I get serve_http: multipart: message too large

ismail-ia avatar May 16 '24 15:05 ismail-ia

It's a bug in Golang I presume. If you are not sending files, use either application/x-www-form-urlencoded in body instead or send json, if you can.

FluffyDiscord avatar May 16 '24 15:05 FluffyDiscord

Thanks! That worked.

ismail-ia avatar May 16 '24 15:05 ismail-ia