Hi,
I am using the hosted target node js proxy in that my index.js has code to returns the token.
var svr = http.createServer(function(req, resp) {
my logic goes here........
svr.listen(9000, function() { console.log('Node HTTP server is listening 9000'); });
I am using another proxy and making a service-callout to the above hosted target proxy and this returns me a 500 error response(See below). and noticed that the request i.e. req object has headers values undefined.
when i check runtime logs it seems like whole request i.e. req not having any values. However the curl (Request sent to target server) has got all correct request values and target server being 'http://localhost'
appreciate if anyone can look into the above problem please.
500 error response
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>Please try
<h2></h2>
</body></html>