Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxying streaming audio APIs time out in node 16 #727

Open
2 tasks done
allisonking opened this issue Mar 10, 2022 · 1 comment
Open
2 tasks done

Proxying streaming audio APIs time out in node 16 #727

allisonking opened this issue Mar 10, 2022 · 1 comment

Comments

@allisonking
Copy link

allisonking commented Mar 10, 2022

Checks

Describe the bug (be clear and concise)

When upgrading from node 14 to node 16, proxying now times out for partial response streams (i.e. streaming audio).

Step-by-step reproduction instructions

Please see this github repo for repro instructions + minimal code: https://github.com/allisonking/http-proxy-middleware-repro

Expected behavior (be clear and concise)

Same behavior as node 14: proxying succeeds without hanging

How is http-proxy-middleware used in your project?

npm ls http-proxy-middleware
test@1.0.0 ***/http-proxy-middleware-repro
└── http-proxy-middleware@2.0.3

What http-proxy-middleware configuration are you using?

Please see the github repo

What OS/version and node/version are you seeing the problem?

System:
    OS: macOS 10.15.7
    CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
    Memory: 131.51 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
  Browsers:
    Chrome: 99.0.4844.51
    Firefox: 97.0.2
    Safari: 15.3

Additional context (optional)

There's a bit more context in this discussion q I put in earlier but I decided to promote it to a ticket now that I have a minimal reproducible github repo. Thanks for your help!

@jprorikon
Copy link

I have encountered the same problem with my project.
It should be the http-proxy package that the http-proxy-middleware depends on that is causing this problem.

The following link may solve your problem
http-party/node-http-proxy#1580

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants