sendinblue / APIv3-nodejs-library

SendinBlue's API v3 Node.js Library
ISC License
101 stars 47 forks source link

Error: unable to get local issuer certificate #55

Closed mishaseniv closed 1 year ago

mishaseniv commented 5 years ago

I use sendTransacEmail, but i got only

{ Error: unable to get local issuer certificate at TLSSocket.<anonymous> (_tls_wrap.js:1116:38) at emitNone (events.js:106:13) at TLSSocket.emit (events.js:208:7) at TLSSocket._finishInit (_tls_wrap.js:643:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:473:38) code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY', response: undefined }

There is nothing in the official documentation about this problem, nor about certificates. Why can there be a problem?

shubhamUpadhyayInBlue commented 1 year ago

Hi @mishaseniv It seems to be a problem with your npm and not the library you are using.

A few StackOverflow traces:

The resolution seems to be simple, please try this out https://stackoverflow.com/a/45884819.

Happy to help! Shubham