https calls not working #172
Description
In the new version when I try to make a HTTPS request to third-party APIs server, I'm getting this error
{ Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1092:19)
at TLSSocket.g (events.js:291:16)
at ZoneDelegate.invokeTask (/xxx/xxx/xxx/xxx/node_modules/zone.js/dist/zone-node.js:225:37)
at Zone.runTask (/xxx/xxx/xxx/xxx/node_modules/zone.js/dist/zone-node.js:125:47)
at TLSSocket.ZoneTask.invoke (/xxx/xxx/xxx/xxx/node_modules/zone.js/dist/zone-node.js:293:33)
at emitNone (events.js:91:20)
at TLSSocket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9) code: 'ECONNRESET' }
the code is something like this
const request = require('request');
const url = "https://xxx.xxx.xxx";
request(url, function (err, response, body) {
console.log(err);
console.log(response);
console.log(body);
});