bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Bruno crashes on large API responses

Open OpenOrangeData opened this issue 7 months ago • 2 comments

I have checked the following:

  • [x] I have searched existing issues and found nothing related to my issue.

This bug is:

  • [ ] making Bruno unusable for me
  • [x] slowing me down but I'm able to continue working
  • [x] annoying
  • [ ] this feature was working in a previous version but is broken in the current release.

Bruno version

2.2.0

Operating System

Windows 11

Describe the bug

Bruno crashes repeatedly when I get a large response from an API. Once I send the request, Bruno counts up the seconds until about 10-11s, then freezes and eventually crashes completely.

I had similar problems with other APIs: big payload, Bruno freezes (but doesn't crash entirely), and I have to force quit via task manager. I was wondering if it's related to the rendering/preview of the results (mentioned in #4290 ) which is why I already commented there.

Note:

  • The token provided below is limited to a few requests per minute.
  • Please notify once you could reproduce the problem. I'll later revoke this token.

.bru file to reproduce the bug

.bru file type seems not to be allowed by github, so I'm pasting its content:

meta { name: Siri-SX type: http seq: 1 }

get { url: https://api.opentransportdata.swiss/la/siri-sx body: none auth: bearer }

auth:bearer { token: eyJvcmciOiI2NDA2NTFhNTIyZmEwNTAwMDEyOWJiZTEiLCJpZCI6IjJiZjI2ZGI2MGIyMzQxYjA5NTZlYWRiYWRmZGM4M2UzIiwiaCI6Im11cm11cjEyOCJ9 }

Screenshots/Live demo link

Image

OpenOrangeData avatar May 08 '25 15:05 OpenOrangeData

Also occurring on Mac. I believe Postman and Insomnia download the response and look at the size before displaying it on the ui and if it’s too large it automatically asks to save it to a file instead of displaying it.

rreyn-bruno avatar May 13 '25 12:05 rreyn-bruno

JIRA

anusree-bruno avatar May 20 '25 10:05 anusree-bruno

Hey @OpenOrangeData, we've made a fix for this issue in our latest release. It now checks for a data size threshold (10MB) and prompts the user to either download the response as a file or view it in Bruno. For very large responses (over 50MB), Bruno might hang, but it won’t crash.

Please download the latest version for the fix.

Feature available from: v2.6.0 PR for the fix: #4866

Thanks!

image

Pragadesh44-Bruno avatar Jun 19 '25 10:06 Pragadesh44-Bruno

Closing this issue as completed

Pragadesh44-Bruno avatar Jun 19 '25 10:06 Pragadesh44-Bruno

@Pragadesh44-Bruno thank you for the fix. I just tested the initial use case mentioned above - with mixed results:

  1. Yes, Bruno doesn't crash anymore! So.. technically, the issue of Bruno crashing is solved.
  2. In case of a response of a large response of 65.5 MB is had to wait for about 24 minutes until the warning message appeared. Not that great from a UX perspective - performance is already degraded substantially before the warning for potentially degraded performance is issued.

Having said that, for smaller responses (I think it was 10-20 MB) it worked fine and it's great to have three options to choose from.

Image

OpenOrangeData avatar Jun 20 '25 15:06 OpenOrangeData

@OpenOrangeData, we’ll definitely check this and work on improving it. Thanks for the feedback!

Pragadesh44-Bruno avatar Jun 20 '25 18:06 Pragadesh44-Bruno

same here, industrial api management, response body of approx. 122mb

castdrian avatar Nov 05 '25 11:11 castdrian

For me, a 1MB JSON response takes several minutes to be displayed in the GUI. The application hangs for that long. It's unusable for me. I'm using version 2.15 on Windows 11.

zib-ctrl avatar Dec 03 '25 15:12 zib-ctrl