mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #4387] [bug]: accept-encoding gzip does not decode #1604
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1604
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Marcuse7 on GitHub (Sep 30, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4387
Originally assigned to: @AugleBoBaugles on GitHub.
Is there an existing issue for this?
Current behavior
When I send a GET request with header
accept-encoding: gzip, deflateI expect the response to be decoded. What I get is undecoded (gzipped) text.Steps to reproduce
GETquery with https://echo.hoppscotch.ioAccept-encodingvaluegziporgzip, deflateEnvironment
Production
Version
Cloud
@VANSH3104 commented on GitHub (Oct 8, 2024):
@Marcuse7 can you explain more about this
@Marcuse7 commented on GitHub (Oct 13, 2024):
Hello Vansh, thank you for reply!


I use Hoppscotch Version 24.9.1-0 (20241006.121003) on macOS 14.7.
This is the request and its reply:
These are my settings (the error persists w/ interceptor set to Native):
@unacro commented on GitHub (Oct 14, 2024):
Same situation.
While response body is zipped, show RAW content as garble
(header
content-encodingmarked asgzip)@AugleBoBaugles commented on GitHub (Nov 14, 2024):
I'm working on this
@SanskritiHarmukh commented on GitHub (Nov 19, 2024):
Hey @AugleBoBaugles , just wanted to check if you're participating in the CodeDay micro-internship program, as issues labeled with
CodeDayare reserved for that partnership. Let me know!@AugleBoBaugles commented on GitHub (Nov 19, 2024):
@SanskritiHarmukh Yes, this is the issue assigned to my group for the CodeDay micro-internship.
@AugleBoBaugles commented on GitHub (Dec 3, 2024):
@SanskritiHarmukh My team has hit a wall with this issue. We’ve successfully set up our build environments, however we haven’t been able to recreate the issue locally. We have been able to recreate it using the current version of Hoppscotch at https://hoppscotch.io/ though.
We’ve seen that there was an update to the Hoppscotch version recently and the issue still exists there. Our theory is that there is a commit to the repository that has not been used in the public version of Hoppscotch yet.
Where should we go from here to resolve this issue?
@SanskritiHarmukh commented on GitHub (Dec 4, 2024):
We'll get back to you on this.
@SanskritiHarmukh commented on GitHub (Dec 4, 2024):
Could you try setting up the Hoppscotch Agent as an interceptor and see if you can reproduce the issue on your end?
@SanskritiHarmukh commented on GitHub (Dec 4, 2024):
Hi there,
I interacted with the team and we were able to figure out a few things. The issue seems to be related to the combination of the web app and the Agent. Specifically, when both are used together, the response is not being deflated properly. However, if you use just the web app, the response deflates automatically because the browser (via Axios) handles it. Similarly, if you're using the desktop app, the native interceptors are not deflating the response, which is where the issue also occurs.
The
hoppscotch-relaylibrary, which manages networking for both the desktop app and the Agent, is central to understanding this issue. Exploring how it interacts with the Agent could help address the problem.If you're comfortable with Rust, there could be a potential solution involving libcurl to handle the deflation for us. If you’re interested in exploring this, you can dive into the rust-curl implementation and see how it can work with the current setup.
If Rust isn't your area, there's still an open issue for CodeDay that hasn't been addressed yet: Hoppscotch Extension Issue #303. You can either look into that or explore other potential open issues. Let me know if you'd like to take one up.
@hissssst commented on GitHub (Feb 13, 2025):
I experience this issue on hoppscotch electron desktop app
@xTudoS commented on GitHub (Feb 27, 2025):
I find out where
adding curl_handle.accept_encoding("gzip"); to run_request_task solved
I will open a PR for it
@liyasthomas commented on GitHub (Mar 4, 2025):
Thanks for your patience and valuable feedback. We’ve fixed this bug in the latest release.
Download the latest builds and provide your valuable feedback.
Closing this ticket as this bug is now fixed in the recent version. Please feel free to reach out if you have any other concerns.