[GH-ISSUE #5808] [bug]: error in generated code when there is an attachment in the body #2272

Open
opened 2026-03-16 23:48:21 +03:00 by kerem · 0 comments
Owner

Originally created by @radekcols on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5808

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Desktop App

Browser

Chrome

Operating System

Windows

Bug Description

hey fellas,

there is always a message 'Something went wrong' in the generated code within the hoppscotch desktop app.
anytime you attach a file to the body (content-type: application/octet-stream), the code is not generated.
(clearly visible in the attach screen shot).

expected behavior:
either generate the code or put there some reasonable message why it can't be generated.. :)

Image

Deployment Type

Hoppscotch Cloud

Version

2025.12.1

Originally created by @radekcols on GitHub (Jan 28, 2026). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5808 ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Desktop App ### Browser Chrome ### Operating System Windows ### Bug Description hey fellas, there is always a message 'Something went wrong' in the generated code within the hoppscotch desktop app. anytime you attach a file to the body (content-type: application/octet-stream), the code is not generated. (clearly visible in the attach screen shot). expected behavior: either generate the code or put there some reasonable message why it can't be generated.. :) ![Image](https://github.com/user-attachments/assets/129b1596-ebdf-4e8d-a9cb-e0dc8412b1e5) ### Deployment Type Hoppscotch Cloud ### Version 2025.12.1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2272
No description provided.