Skip to content

Generate Code error with Binary/File request #4749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 of 5 tasks
Art051 opened this issue May 23, 2025 · 0 comments
Open
3 of 5 tasks

Generate Code error with Binary/File request #4749

Art051 opened this issue May 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Art051
Copy link
Contributor

Art051 commented May 23, 2025

I have checked the following:

  • 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
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

2.3.0

Operating System

macOS 15.5 (24F74)

Describe the bug

'Generate Code' functionality does not work when used with requests which are 'File/Binary' type.
The same error occurs in all 3 variations I checked:

  1. File/Binary request with a file selected and checkbox ticked.
  2. File/Binary request with a the file field empty and checkbox ticked.
  3. File/Binary request with an empty request body.

I noticed PR 4207 that somewhat resolves this bug, but not entirely as it fails to handle cases 2 and 3.

I believe I've got a working solution I will push to accompany this issue.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

File/Binary request with a file selected and checkbox ticked.

Image
Image


File/Binary request with a the file field empty and checkbox ticked.

Image
Image


File/Binary request with an empty request body.

Image
Image

@Art051 Art051 added the bug Something isn't working label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant