Closed jaythakor-ai closed 3 months ago
Sounds like a configuration issue
Not recommended to call createProxyMiddleware
inside app.use
This'll create a new proxy for every request...
This might cause the issue you are facing.
Example: https://github.com/chimurai/http-proxy-middleware/blob/master/README.md#express-server-example
Nothing I can't do without reproduction example Feel free to re-open if you can provide one.
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
I am using the uWebSockets-express in my application. I am trying to proxy my simple get request but facing the above error. This is working fine in the express app but not when using the uWebSockets-express.
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
It should work the same as the node app
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response