[GH-ISSUE #2139] [bug]: Downloaded PDF files are malformed #721

Closed
opened 2026-03-16 16:52:27 +03:00 by kerem · 5 comments
Owner

Originally created by @micthiesen on GitHub (Feb 28, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2139

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I attempt to download a PDF response, the downloaded PDF cannot be rendered (it is blank). Compare this to downloading the PDF directly from the browser, and it works.

Steps to reproduce

  1. Make a GET request for a PDF file, like https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf
  2. The raw response shown is the binary data
  3. Download the response
  4. When attempting to download the response, the PDF cannot be rendered (it is blank)

I've tried to compare the downloaded response to the actual PDF, and there are some slight differences, but I couldn't determine what the exact difference was. There might be some slight encoding difference or something.

Side note but it would be nice if instead of showing the raw binary data, a rendered PDF was shown.

Environment

Production

Version

Cloud

Originally created by @micthiesen on GitHub (Feb 28, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2139 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I attempt to download a PDF response, the downloaded PDF cannot be rendered (it is blank). Compare this to downloading the PDF directly from the browser, and it works. ### Steps to reproduce 1. Make a GET request for a PDF file, like `https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf` 2. The raw response shown is the binary data 3. Download the response 4. When attempting to download the response, the PDF cannot be rendered (it is blank) I've tried to compare the downloaded response to the actual PDF, and there are some slight differences, but I couldn't determine what the exact difference was. There might be some slight encoding difference or something. Side note but it would be nice if instead of showing the raw binary data, a rendered PDF was shown. ### Environment Production ### Version Cloud
kerem 2026-03-16 16:52:27 +03:00
Author
Owner

@AndrewBastin commented on GitHub (Feb 28, 2022):

@micthiesen Can you confirm which interceptor are you using ? Are you using None ? Proxy or the Browser Extension ?

<!-- gh-comment-id:1054592614 --> @AndrewBastin commented on GitHub (Feb 28, 2022): @micthiesen Can you confirm which interceptor are you using ? Are you using None ? Proxy or the Browser Extension ?
Author
Owner

@micthiesen commented on GitHub (Feb 28, 2022):

I tried with both the Browser Extension (FireFox) and also with it disabled

<!-- gh-comment-id:1054593085 --> @micthiesen commented on GitHub (Feb 28, 2022): I tried with both the Browser Extension (FireFox) and also with it disabled
Author
Owner

@micthiesen commented on GitHub (Feb 28, 2022):

I also just tested with Chrome (no extension) and it has the same issue. I'm using MacOS

<!-- gh-comment-id:1054596006 --> @micthiesen commented on GitHub (Feb 28, 2022): I also just tested with Chrome (no extension) and it has the same issue. I'm using MacOS
Author
Owner

@AndrewBastin commented on GitHub (Feb 28, 2022):

Should be fixed in e9dc7769ac

@micthiesen please confirm on your end and let me know. Thank you for raising the issue! <3

Closing the issue.

<!-- gh-comment-id:1054654567 --> @AndrewBastin commented on GitHub (Feb 28, 2022): Should be fixed in e9dc7769ac5d9e05e8a664ec702958e8726a67e0 @micthiesen please confirm on your end and let me know. Thank you for raising the issue! <3 Closing the issue.
Author
Owner

@micthiesen commented on GitHub (Feb 28, 2022):

@AndrewBastin it works! Thank you very much for the quick fix

<!-- gh-comment-id:1054660615 --> @micthiesen commented on GitHub (Feb 28, 2022): @AndrewBastin it works! Thank you very much for the quick fix
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#721
No description provided.