chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.68k stars 826 forks source link

Client disconnected with websockets & PVE #826

Closed thetayloredman closed 1 year ago

thetayloredman commented 1 year ago

Checks

Describe the bug (be clear and concise)

I am running my PVE node through HPM. All of the terminal websockets close with proxmox erroring "undefined." The HPM log just looks like "upgrading to websocket - client disconnected."

Step-by-step reproduction instructions

[MRE](https://paste.0xlogn.dev/punodedehe.js)

Occurs with changeOrigin true or false. Also, anyone have a good, examples included, example of the http flow with changeOrigin true vs false?

Expected behavior (be clear and concise)

the websocket to work

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

root dependency, used for all proxies

What http-proxy-middleware configuration are you using?

shown in mre

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

Ubuntu 22.04. Node LTS.

Additional context (optional)

No response

thetayloredman commented 1 year ago

SO: https://stackoverflow.com/questions/74256645/express-hpm-404-not-found-client-disconnected-w-pve-xterm-websocket

thetayloredman commented 1 year ago

I just ended up switching to Nginx.