Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

https calls not working #172

Closed
Closed
@arielhenryson

Description

@arielhenryson

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions