Closed Maverick099 closed 6 days ago
can you check the postman request if it is using any specific content encoding
@preveen-stack No and anyways all the headers passed by postman or any client is passed as-is to via the proxy when doing the calls. Except for Accept-encoding
header which is modified to accept only utf-8
.
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
Details
An overview on what the code is supposed to do:
I created a simple http request reverse proxy using express to to direct http/https requests to on-premise system for testing the application locally (connects to on-premise using VPN in local environment).
utf-8
, So I don't need to use any package to decode the incoming body (eg. gzip).backoff
function is a simple exponential function ifdo_retry
flag is enabled, which is not for testing scenario.HTTP/s.request function implementation:
Problem:
Able to successful do
GET
andHEAD
calls to the on premise system, But withPOST
calls it fails with408
.So I tried to use postman to do the
POST
call "via" the proxy, to test if headers is missing and causing an408
but I still get the same408
error in this case as well.So I am thinking the request function is not implemented properly.
whole code here
Node.js version
v19.8.1
Example code
Operating system
Windows, Linux
Scope
code
Module and version
http and https