Bruno does not send raw multipart/mixed request body correctly
I have checked the following:
- [x] I have searched existing issues and found nothing related to my issue.
This bug is:
- [x] making Bruno unusable for me
- [x] slowing me down but I'm able to continue working
- [ ] annoying
- [x] this feature was working in a previous version but is broken in the current release.
Bruno version
3.3
Operating System
Windows 11 22631.6783
Describe the bug
Bruno appears unable to correctly send a manually constructed multipart/mixed raw HTTP request body.
The same request succeeds in Postman with HTTP 201 Created, but fails in newer Bruno versions with HTTP 400 Bad Request.
The backend error returned from our server is:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "warning",
"code": "5002",
"details": {
"coding": [
{
"system": "<REDACTED>",
"code": "5002"
}
],
"text": "No request body"
}
}
]
}
Important Finding
I verified that this works correctly in:
Bruno v3.1.4 ✅
The issue appears in newer Bruno versions ❌. (So Versions > V3.1.4)
This suggests a regression was introduced after v3.1.4 in how raw multipart request bodies are serialized/sent.
Expected Behavior
Bruno should send the raw multipart payload exactly as defined in the request body.
The backend should receive:
POST <REDACTED> HTTP/1.1
Api-Version: 1
Content-Type: multipart/mixed; boundary=boundary123
Authorization: Bearer <token>
--boundary123
Content-Type: application/json
{"dataType":"<REDACTED>","fileName":"<REDACTED>.bin"}
--boundary123
Content-Type: application/octet-stream
abc
--boundary123--
This exact request succeeds in:
- Postman
- Bruno v3.1.4
and returns:
HTTP/1.1 201 Created
Actual Behavior in Newer Bruno Versions
Bruno returns:
HTTP/1.1 400 Bad Request
Backend response:
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "warning",
"code": "5002",
"details": {
"text": "No request body"
}
}
]
}
Investigation Findings
Using Bruno DevTools → Network → Request Details shows that Bruno is not actually sending the raw multipart body.
Instead, the request body internally becomes:
{
"_overheadLength": 0,
"_valueLength": 0,
"_valueToMeasure": [],
"writable": false,
"readable": true,
"dataSize": 0,
"maxDataSize": 2097152,
"pauseStreams": true,
"released": false,
"_streams": [],
"_currentStream": null,
"_insideLoop": false,
"_pendingNext": false,
"_boundary": "--------------------------3aad369e1456c8b5afe949f4"
}
Important observations:
_streams is empty dataSize is 0 Bruno generates its own internal _boundary The request body is effectively empty The backend therefore reports "No request body"
Additionally:
The outgoing header contains:
Content-Type: multipart/mixed; boundary=boundary123
But the internally generated body object uses a different boundary:
"_boundary": "--------------------------3aad369e1456c8b5afe949f4"
This results in an invalid multipart request.
Comparison
Postman Sends identical request successfully Returns 201 Created Bruno v3.1.4 Sends request correctly Returns 201 Created Newer Bruno Versions Returns 400 Bad Request Sends empty multipart stream internally
.bru file to reproduce the bug
No response
Screenshots/Live demo link
usebruno/bruno#6325 - fix: Consistent multipart form handling and ⚠️ Possible Duplicate Issue(s)
🔗 Related PRs
@contentType support in examples [merged]
usebruno/bruno#7155 - Feat: Support multipart/mixed [merged]
usebruno/bruno#7531 - fix: preserve user-defined boundary in multipart/mixed Content-Type header [merged]
usebruno/bruno#7675 - feat: replace send button with Send/Cancel buttons on request url [merged]
usebruno/bruno#7690 - fix: preserve stream-backed file bodies during request interpolation [merged]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
- [ ] Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
I am having the same issue - Bruno v3.2.0
Hi, thanks for reporting. We're looking into this now. Will keep you posted.
Hi @ArthurTimmermans, @loukkyy , we have released a patch version fixing this issue (v3.4.2). Please check it out: https://www.usebruno.com/downloads. Thanks!