bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Main process JavaScript error occurs when generating documentation from a large API specification

Open ll3m4n opened this issue 4 weeks ago • 4 comments

Internal - [BRU-5014]

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.
  • [ ] 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.0.0

💻 Operating System

Windows

Specific OS Version / Distro

windows 11

🐞 Describe the bug

I imported a large JSON file into API Spec and generated a collection from it. Then, I opened the collection preview and clicked the Generate Docs button. After that, a JavaScript error modal appeared with the message: Error: read ENOTCONN.

ACTUAL RESULT: A JavaScript error modal appears three times. After clicking the OK button on each modal, the file save dialog opens, allowing me to save the generated documentation.

📝 Steps to reproduce

Steps to Reproduce:

Import a large JSON file into the API Spec section.

Generate a collection from the imported API Spec.

Open the generated collection preview.

Click the Generate Docs button.

Observe the error modal.

📁 Collection to reproduce

No response

📷 Screenshots/Live demo link

Image

ll3m4n avatar Nov 05 '26 21:11 ll3m4n

Hi @ll3m4n, I've tried to replicate the same with a large JSON file and I was able to generate docs without any errors.

If the API Spec you are trying a test file then would you mind sharing that Spec file with us so that I can try the same to replicate this issue?

Rohan-Bruno avatar Nov 06 '26 11:11 Rohan-Bruno

hi @Rohan-Bruno . Sure, I've attached the JSON file I used to reproduce the issue. Please let me know if you need any additional information.

bruno_api_spec_large.json

ll3m4n avatar Nov 06 '26 12:11 ll3m4n

Hi @ll3m4n, thanks for providing the spec file.

It looks like the issue is not with the spec file itself, but with the length of the folder path where you're trying to import it. Windows has a path length limitation of 260 characters, and the issue occurs when the folder path exceeds this limit.

From your screenshot, I noticed that the folder path contains multiple instances of "test", which may be causing it to exceed the 260-character limit.

To verify this, could you try importing the same spec file into a different folder, such as: C:\Users\user\Documents\test

The import should complete successfully if the path is shorter.

To check the path length, count all characters starting from C:\ up to the end of the folder path. If the total exceeds 260 characters, that is likely the cause of the issue.

That said, I've shared this with our engineering team, and it's being evaluated alongside our other product priorities. While I can't promise a timeline at the moment, we'll make sure it gets reviewed as soon as possible, and we'll share any updates as they become available.

We'll keep this thread updated with any progress or new information.

Rohan-Bruno avatar Nov 09 '26 08:11 Rohan-Bruno

Hi @Rohan-Bruno .I tested importing the same spec file into a shorter folder path,and it worked successfully.You were right — the issue was related to the folder path length. Thanks for your help and for investigating this issue!

ll3m4n avatar Nov 09 '26 19:11 ll3m4n