Is this a bug report?
Yes
Steps to reproduce
- Setup the project as written in the readme
- Create an endpoint to check if the request succeeds (mine is on https://webhook.site)
- Execute a request with no body (using postman) => succeeds
- Execute the same request with a body (using postman) => timeout/ no response
The request:
http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIER
Expected behavior
forward http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIER to https://webhook.site/MY-WEBHOOK-IDENTIFIER no matter what content:
No timeout when requesting on http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIER with a content
No timeout when requesting on http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIER with no content
No timeout when requesting on https://webhook.site/MY-WEBHOOK-IDENTIFIER with or without content
Actual behavior
Timeout when requesting on http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIER with a content
No timeout when requesting on http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIER with no content
No timeout when requesting on https://webhook.site/MY-WEBHOOK-IDENTIFIER with or without content
Setup
app.use("/proxy", createProxyMiddleware({ target: "https://webhook.site", pathRewrite: { ["^/proxy"]: "" }, logLevel: "debug", changeOrigin: true }));
- http-proxy-middleware: 1.0.3
- http-proxy-middleware configuration: logLevel=debug, changeOrigin=true, pathRewrite={ ["^/proxy"]: "" }
- server: express + 4.16.3
client info
OS: Linux Mint 19.3 "Tricia"
User-Agent: PostmanRuntime/7.24.0
target server info
Webhook.site: A free web server to mirror incoming requests
Is this a bug report?
Yes
Steps to reproduce
The request:
http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIERExpected behavior
forward
http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIERtohttps://webhook.site/MY-WEBHOOK-IDENTIFIERno matter what content:No timeout when requesting on
http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIERwith a contentNo timeout when requesting on
http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIERwith no contentNo timeout when requesting on
https://webhook.site/MY-WEBHOOK-IDENTIFIERwith or without contentActual behavior
Timeout when requesting on
http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIERwith a contentNo timeout when requesting on
http://127.0.0.1/proxy/MY-WEBHOOK-IDENTIFIERwith no contentNo timeout when requesting on
https://webhook.site/MY-WEBHOOK-IDENTIFIERwith or without contentSetup
app.use("/proxy", createProxyMiddleware({ target: "https://webhook.site", pathRewrite: { ["^/proxy"]: "" }, logLevel: "debug", changeOrigin: true }));client info
OS: Linux Mint 19.3 "Tricia"
User-Agent: PostmanRuntime/7.24.0
target server info
Webhook.site: A free web server to mirror incoming requests