Request by got + compression hangs forever #2200
Labels
bug
Something isn't working
needs:triage
Issues that have not been investigated yet.
scope:node
Related to MSW running in Node
Prerequisites
Environment check
msw
versionNode.js version
v22.3.0
Reproduction repository
https://github.com/tim-coulter/msw-got-compression-example
Reproduction steps
npm i
npm run server
npm run test
Note that this is only reproducible with the following:
app.use(compression);
on the mock serverCurrent behavior
When the msw server has not started listening both the
got
andfetch
requests work as expected and return a response. When the mock server is started, however, only the fetch request returns a response but the request using got appears to hang (got works 2 is never seen).Expected behavior
As that request is not being intercepted by msw the behaviour should be exactly the same as before starting the server as after (the request made using got should not hang).
The text was updated successfully, but these errors were encountered: