isomorphic-git/isomorphic-git

support 'agent' for corporate SSL proxies

Open

#202 geöffnet am 17. Mai 2018

Auf GitHub ansehen
 (5 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (7.054 Stars) (351 Forks)batch import
good first issueplugin

Beschreibung

I get a certificate error due to the github repo being on an enterprise server:

(node:14790) UnhandledPromiseRejectionWarning: Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (_tls_wrap.js:1046:34)
    at TLSSocket.emit (events.js:180:13)
    at TLSSocket._finishInit (_tls_wrap.js:633:8)
(node:14790) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(

Using process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; helps but putting this out there so that there can be a more official way to handle this.

Contributor Guide