Skip to content

--experimental-network-inspection not working properly with gzip response #61222

@rubnogueira

Description

@rubnogueira

Version

24.12.0

Platform

Linux f6656b111cde 6.17.8-orbstack-00308-g8f9c941121b1 #1 SMP PREEMPT Thu Nov 20 09:34:02 UTC 2025 aarch64 Linux

Subsystem

No response

What steps will reproduce the bug?

Make a request with accept-encoding: gzip, deflate and receive an HTTPS response with content-encoding: gzip.

When we are opening the response on devtools, all the response is full of symbols. I'm able to use the response normally in the code.

How often does it reproduce? Is there a required condition?

Always. Disabling gzip I can read the response normally on DevTools.

node -r ts-node/register -r tsconfig-paths/register --experimental-network-inspection --experimental-inspector-network-resource --inspect=0.0.0.0:3123 --nolazy src/index.ts

Running the code in the container, connect devtools with port 3123, and make the request.

What is the expected behavior? Why is that the expected behavior?

Read the response, no matter the encoding. I am not sure if it applies with brotli or deflate.

What do you see instead?

N/A

Additional information

Repro: https://github.com/rubnogueira/nodejs-repro-61222

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions