Why when I run the npm request module the output I get is undefined
?
const request = require('request');
request({
url: 'https://maps.googleapis.com/maps/api/geocode/json?address=1301%20lombard%20street%20philadelphia',
json: true
}, (error, response, body) => {
console.log(body);
});
I checked for proxy using env|grep -i proxy and then unset proxy for http_proxy or other proxies which is set.The command for that is:unset http_proxy